Class BasinBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
com.simibubi.create.foundation.blockEntity.SmartBlockEntity
com.simibubi.create.content.processing.basin.BasinBlockEntity
- All Implemented Interfaces:
IHaveCustomOverlayIcon,IHaveGoggleInformation,PartialSafeNBT,SpecialBlockEntityItemRequirement,IInteractionChecker,net.createmod.ponder.api.VirtualBlockEntity,net.neoforged.neoforge.attachment.IAttachmentHolder,net.neoforged.neoforge.common.extensions.IBlockEntityExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
net.neoforged.neoforge.attachment.AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.neoforged.neoforge.fluids.capability.IFluidHandlerprotected net.neoforged.neoforge.items.IItemHandlerModifiablestatic final intprotected SmartInventoryprotected SmartFluidTankBehaviourprotected List<net.minecraft.world.item.ItemStack> protected List<net.neoforged.neoforge.fluids.FluidStack> Fields inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
lazyTickCounter, lazyTickRateFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionBasinBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptOutputs(List<net.minecraft.world.item.ItemStack> outputItems, List<net.neoforged.neoforge.fluids.FluidStack> outputFluids, boolean simulate) voidaddBehaviours(List<BlockEntityBehaviour> behaviours) booleanaddToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) This method will be called when looking at aBlockEntitythat implements this interfacebooleanbooleanvoiddestroy()Block destroyed or replaced.static BlazeBurnerBlock.HeatLevelgetHeatLevelOf(net.minecraft.world.level.block.state.BlockState state) net.createmod.catnip.data.Couple<SmartInventory> getInvs()net.createmod.catnip.data.Couple<SmartFluidTankBehaviour> getTanks()floatgetTotalFluidUnits(float partialTicks) voidBlock destroyed or Chunk unloaded.booleanisEmpty()voidlazyTick()voidvoidvoidvoidonWrenched(net.minecraft.core.Direction face) protected voidread(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Hook only these in future subclasses of STEvoidreadOnlyItems(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries) static voidregisterCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event) voidremove()Block destroyed or picked up by a contraption.booleansetAreFluidsMoving(boolean areFluidsMoving) voidtick()voidwrite(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Hook only these in future subclasses of STEMethods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, initialize, isChunkUnloaded, isVirtual, loadAdditional, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
createRenderBoundingBox, getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
blockHolderGetter, getUpdatePacket, getUpdateTag, handleUpdateTag, onDataPacket, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, syncData, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, hasCustomOutlineRendering, invalidateCapabilities, onLoad, requestModelDataUpdateMethods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveCustomOverlayIcon
getIconMethods inherited from interface com.simibubi.create.api.equipment.goggles.IHaveGoggleInformation
containedFluidTooltip
-
Field Details
-
inputInventory
-
inputTank
-
outputInventory
-
outputTank
-
itemCapability
protected net.neoforged.neoforge.items.IItemHandlerModifiable itemCapability -
fluidCapability
protected net.neoforged.neoforge.fluids.capability.IFluidHandler fluidCapability -
spoutputBuffer
-
spoutputFluidBuffer
-
OUTPUT_ANIMATION_TIME
public static final int OUTPUT_ANIMATION_TIME- See Also:
-
-
Constructor Details
-
BasinBlockEntity
public BasinBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
registerCapabilities
public static void registerCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event) -
addBehaviours
- Specified by:
addBehavioursin classSmartBlockEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Description copied from class:SmartBlockEntityHook only these in future subclasses of STE- Overrides:
readin classSmartBlockEntity
-
write
public void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Description copied from class:SmartBlockEntityHook only these in future subclasses of STE- Overrides:
writein classSmartBlockEntity
-
destroy
public void destroy()Description copied from class:SmartBlockEntityBlock destroyed or replaced. Requires Block to call IBE::onRemove- Overrides:
destroyin classSmartBlockEntity
-
remove
public void remove()Description copied from class:SmartBlockEntityBlock destroyed or picked up by a contraption. Usually detaches kinetics- Overrides:
removein classSmartBlockEntity
-
onEmptied
public void onEmptied() -
invalidate
public void invalidate()Description copied from class:SmartBlockEntityBlock destroyed or Chunk unloaded. Usually invalidates capabilities- Overrides:
invalidatein classSmartBlockEntity
-
notifyUpdate
public void notifyUpdate()- Overrides:
notifyUpdatein classSyncedBlockEntity
-
lazyTick
public void lazyTick()- Overrides:
lazyTickin classSmartBlockEntity
-
isEmpty
public boolean isEmpty() -
onWrenched
public void onWrenched(net.minecraft.core.Direction face) -
tick
public void tick()- Overrides:
tickin classSmartBlockEntity
-
getTotalFluidUnits
public float getTotalFluidUnits(float partialTicks) -
getFilter
-
notifyChangeOfContents
public void notifyChangeOfContents() -
getInputInventory
-
getOutputInventory
-
canContinueProcessing
public boolean canContinueProcessing() -
acceptOutputs
-
readOnlyItems
public void readOnlyItems(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries) -
getHeatLevelOf
public static BlazeBurnerBlock.HeatLevel getHeatLevelOf(net.minecraft.world.level.block.state.BlockState state) -
getTanks
-
getInvs
-
areFluidsMoving
public boolean areFluidsMoving() -
setAreFluidsMoving
public boolean setAreFluidsMoving(boolean areFluidsMoving) -
addToGoggleTooltip
public boolean addToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) Description copied from interface:IHaveGoggleInformationThis method will be called when looking at aBlockEntitythat implements this interface- Specified by:
addToGoggleTooltipin interfaceIHaveGoggleInformation- Returns:
trueif the tooltip creation was successful and should be displayed, orfalseif the overlay should not be displayed
-