Class BrassTunnelBlockEntity
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.logistics.tunnel.BeltTunnelBlockEntity
com.simibubi.create.content.logistics.tunnel.BrassTunnelBlockEntity
- 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 ClassesNested 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 TypeFieldDescriptionFields inherited from class com.simibubi.create.content.logistics.tunnel.BeltTunnelBlockEntity
cap, flaps, flapsToSend, sidesFields 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
ConstructorsConstructorDescriptionBrassTunnelBlockEntity(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 TypeMethodDescriptionvoidaddBehaviours(List<BlockEntityBehaviour> behaviours) voidaddBehavioursDeferred(List<BlockEntityBehaviour> behaviours) Gets called just before reading block entity data for behaviours.booleanaddToGoggleTooltip(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking) This method will be called when looking at aBlockEntitythat implements this interfacebooleancanInsert(net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack) booleanprotected SidedFilteringBehaviourvoiddestroy()Block destroyed or replaced.protected booleandetermineIfConnected(boolean leftSide) booleanflapFilterEmpty(net.minecraft.core.Direction side) protected @Nullable BrassTunnelBlockEntitygetAdjacent(boolean leftSide) net.neoforged.neoforge.items.IItemHandlernet.minecraft.world.item.ItemStackList<net.minecraft.world.item.ItemStack> grabAllStacksOfGroup(boolean simulate) booleanvoidprotected @Nullable net.minecraft.world.item.ItemStackinsertIntoTunnel(BrassTunnelBlockEntity tunnel, net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack, boolean simulate) voidBlock destroyed or Chunk unloaded.booleanisConnected(boolean leftSide) protected voidread(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Hook only these in future subclasses of STEstatic voidregisterCapabilities(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent event) voidsetStackToDistribute(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.core.Direction enteredFrom) booleantestFlapFilter(net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack) voidtick()voidvoidwrite(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.content.logistics.tunnel.BeltTunnelBlockEntity
flap, writeFlapsAndSides, writeSafeMethods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
attachBehaviourLate, award, awardIfNear, canPlayerUse, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, isChunkUnloaded, isVirtual, lazyTick, loadAdditional, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, remove, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClientMethods 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, notifyUpdate, 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
-
selectionMode
-
-
Constructor Details
-
BrassTunnelBlockEntity
public BrassTunnelBlockEntity(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
- Overrides:
addBehavioursin classBeltTunnelBlockEntity
-
tick
public void tick()- Overrides:
tickin classBeltTunnelBlockEntity
-
setStackToDistribute
public void setStackToDistribute(net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.core.Direction enteredFrom) -
getStackToDistribute
public net.minecraft.world.item.ItemStack getStackToDistribute() -
grabAllStacksOfGroup
-
insertIntoTunnel
@Nullable protected @Nullable net.minecraft.world.item.ItemStack insertIntoTunnel(BrassTunnelBlockEntity tunnel, net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack, boolean simulate) -
testFlapFilter
public boolean testFlapFilter(net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack) -
flapFilterEmpty
public boolean flapFilterEmpty(net.minecraft.core.Direction side) -
initialize
public void initialize()- Overrides:
initializein classBeltTunnelBlockEntity
-
canInsert
public boolean canInsert(net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack) -
hasDistributionBehaviour
public boolean hasDistributionBehaviour() -
addBehavioursDeferred
Description copied from class:SmartBlockEntityGets called just before reading block entity data for behaviours. Register anything here that depends on your custom BE data.- Overrides:
addBehavioursDeferredin classSmartBlockEntity
-
createSidedFilter
-
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 classBeltTunnelBlockEntity
-
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 classBeltTunnelBlockEntity
-
isConnected
public boolean isConnected(boolean leftSide) -
updateTunnelConnections
public void updateTunnelConnections()- Overrides:
updateTunnelConnectionsin classBeltTunnelBlockEntity
-
determineIfConnected
protected boolean determineIfConnected(boolean leftSide) -
getAdjacent
-
invalidate
public void invalidate()Description copied from class:SmartBlockEntityBlock destroyed or Chunk unloaded. Usually invalidates capabilities- Overrides:
invalidatein classBeltTunnelBlockEntity
-
destroy
public void destroy()Description copied from class:SmartBlockEntityBlock destroyed or replaced. Requires Block to call IBE::onRemove- Overrides:
destroyin classSmartBlockEntity
-
getBeltCapability
public net.neoforged.neoforge.items.IItemHandler getBeltCapability() -
canTakeItems
public boolean canTakeItems() -
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
-