Class TramSignBlockEntity
java.lang.Object
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
purplecreate.tramways.content.signs.TramSignBlockEntity
- All Implemented Interfaces:
com.simibubi.create.api.contraption.transformable.TransformableBlockEntity,com.simibubi.create.api.schematic.nbt.PartialSafeNBT,com.simibubi.create.api.schematic.requirement.SpecialBlockEntityItemRequirement,com.simibubi.create.foundation.utility.IInteractionChecker,io.github.fabricators_of_create.porting_lib.block.ChunkUnloadListeningBlockEntity,io.github.fabricators_of_create.porting_lib.block.CustomDataPacketHandlingBlockEntity,io.github.fabricators_of_create.porting_lib.block.CustomRenderBoundingBoxBlockEntity,io.github.fabricators_of_create.porting_lib.block.CustomUpdateTagHandlingBlockEntity,io.github.fabricators_of_create.porting_lib.core.util.INBTSerializable<net.minecraft.nbt.CompoundTag>,io.github.fabricators_of_create.porting_lib.extensions.extensions.BlockEntityExtensions,io.github.fabricators_of_create.porting_lib.extensions.extensions.INBTSerializableCompound,net.createmod.ponder.api.VirtualBlockEntity
public class TramSignBlockEntity
extends com.simibubi.create.foundation.blockEntity.SmartBlockEntity
implements com.simibubi.create.api.contraption.transformable.TransformableBlockEntity
-
Field Summary
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 interface io.github.fabricators_of_create.porting_lib.block.CustomRenderBoundingBoxBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionTramSignBlockEntity(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<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours) protected net.minecraft.world.phys.AABBnet.minecraft.nbt.CompoundTagcom.simibubi.create.content.trains.signal.SignalBlockEntity.OverlayStateprotected voidread(net.minecraft.nbt.CompoundTag tag, boolean clientPacket) voidsetDemand(net.minecraft.resources.ResourceLocation id) voidsetDemandExtra(net.minecraft.nbt.CompoundTag received) voidsetOverlay(com.simibubi.create.content.trains.signal.SignalBlockEntity.OverlayState overlay) voidtick()voidtransform(net.minecraft.world.level.block.entity.BlockEntity be, com.simibubi.create.content.contraptions.StructureTransform transform) protected voidwrite(net.minecraft.nbt.CompoundTag tag, boolean clientPacket) Methods inherited from class com.simibubi.create.foundation.blockEntity.SmartBlockEntity
addBehavioursDeferred, attachBehaviourLate, award, awardIfNear, canPlayerUse, destroy, forEachBehaviour, getAllBehaviours, getBehaviour, getRequiredItems, initialize, invalidate, isChunkUnloaded, isVirtual, lazyTick, load, markVirtual, onChunkUnloaded, readClient, refreshBlockState, registerAwardables, remove, removeBehaviour, saveAdditional, sendToMenu, setLazyTickRate, setRemoved, writeClient, writeSafeMethods inherited from class com.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
getRenderBoundingBox, invalidateRenderBoundingBoxMethods inherited from class com.simibubi.create.foundation.blockEntity.SyncedBlockEntity
blockHolderGetter, containedChunk, deserializeNBT, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.fabricators_of_create.porting_lib.extensions.extensions.BlockEntityExtensions
getCustomData, invalidateCaps, onLoadMethods inherited from interface io.github.fabricators_of_create.porting_lib.block.CustomRenderBoundingBoxBlockEntity
getInfiniteBoundingBox, selfMethods inherited from interface io.github.fabricators_of_create.porting_lib.core.util.INBTSerializable
deserializeNBT, serializeNBT
-
Constructor Details
-
TramSignBlockEntity
public TramSignBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
addBehaviours
public void addBehaviours(List<com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour> behaviours) - Specified by:
addBehavioursin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
transform
public void transform(net.minecraft.world.level.block.entity.BlockEntity be, com.simibubi.create.content.contraptions.StructureTransform transform) - Specified by:
transformin interfacecom.simibubi.create.api.contraption.transformable.TransformableBlockEntity
-
getDemand
-
getDemandExtra
public net.minecraft.nbt.CompoundTag getDemandExtra() -
getSignType
-
getOverlay
public com.simibubi.create.content.trains.signal.SignalBlockEntity.OverlayState getOverlay() -
setDemand
public void setDemand(net.minecraft.resources.ResourceLocation id) -
setDemandExtra
public void setDemandExtra(net.minecraft.nbt.CompoundTag received) -
setOverlay
public void setOverlay(com.simibubi.create.content.trains.signal.SignalBlockEntity.OverlayState overlay) -
tick
public void tick()- Overrides:
tickin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
read
protected void read(net.minecraft.nbt.CompoundTag tag, boolean clientPacket) - Overrides:
readin classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
write
protected void write(net.minecraft.nbt.CompoundTag tag, boolean clientPacket) - Overrides:
writein classcom.simibubi.create.foundation.blockEntity.SmartBlockEntity
-
createRenderBoundingBox
protected net.minecraft.world.phys.AABB createRenderBoundingBox()- Overrides:
createRenderBoundingBoxin classcom.simibubi.create.foundation.blockEntity.CachedRenderBBBlockEntity
-