Class LecternControllerTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.simibubi.create.foundation.tileEntity.SyncedTileEntity
com.simibubi.create.foundation.tileEntity.SmartTileEntity
com.simibubi.create.content.logistics.item.LecternControllerTileEntity
- All Implemented Interfaces:
IInteractionChecker,IPartialSafeNBT,net.minecraftforge.common.capabilities.ICapabilityProvider,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>,net.minecraftforge.common.extensions.IForgeBlockEntity,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>> -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB -
Constructor Summary
ConstructorsConstructorDescriptionLecternControllerTileEntity(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<TileEntityBehaviour> behaviours) voiddropController(net.minecraft.world.level.block.state.BlockState state) protected voidfromTag(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEnet.minecraft.world.item.ItemStackbooleanhasUser()booleanisUsedBy(net.minecraft.world.entity.player.Player player) static booleanplayerInRange(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) static booleanplayerIsUsingLectern(net.minecraft.world.entity.player.Player player) voidsetController(net.minecraft.world.item.ItemStack newController) voidswapControllers(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.block.state.BlockState state) voidtick()voidtryStartUsing(net.minecraft.world.entity.player.Player player) voidtryStopUsing(net.minecraft.world.entity.player.Player player) protected voidwrite(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Hook only these in future subclasses of STEvoidwriteSafe(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Methods inherited from class com.simibubi.create.foundation.tileEntity.SmartTileEntity
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, initialize, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, refreshBlockState, removeBehaviour, saveAdditional, sendToContainer, setLazyTickRate, setRemoved, writeToClientMethods inherited from class com.simibubi.create.foundation.tileEntity.SyncedTileEntity
causeBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, notifyUpdate, onDataPacket, packetTarget, save, sendDataMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, triggerEventMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, onLoad, requestModelDataUpdate, serializeNBT
-
Constructor Details
-
LecternControllerTileEntity
public LecternControllerTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
addBehaviours
- Specified by:
addBehavioursin classSmartTileEntity
-
write
protected void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
writein classSmartTileEntity
-
writeSafe
public void writeSafe(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) - Specified by:
writeSafein interfaceIPartialSafeNBT- Overrides:
writeSafein classSmartTileEntity
-
fromTag
protected void fromTag(net.minecraft.nbt.CompoundTag compound, boolean clientPacket) Description copied from class:SmartTileEntityHook only these in future subclasses of STE- Overrides:
fromTagin classSmartTileEntity
-
getController
public net.minecraft.world.item.ItemStack getController() -
hasUser
public boolean hasUser() -
isUsedBy
public boolean isUsedBy(net.minecraft.world.entity.player.Player player) -
tryStartUsing
public void tryStartUsing(net.minecraft.world.entity.player.Player player) -
tryStopUsing
public void tryStopUsing(net.minecraft.world.entity.player.Player player) -
playerIsUsingLectern
public static boolean playerIsUsingLectern(net.minecraft.world.entity.player.Player player) -
tick
public void tick()- Overrides:
tickin classSmartTileEntity
-
setController
public void setController(net.minecraft.world.item.ItemStack newController) -
swapControllers
public void swapControllers(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.level.block.state.BlockState state) -
dropController
public void dropController(net.minecraft.world.level.block.state.BlockState state) -
playerInRange
public static boolean playerInRange(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos)
-