public class LecternControllerTileEntity extends SmartTileEntity
| Constructor and Description |
|---|
LecternControllerTileEntity(net.minecraft.tileentity.TileEntityType<?> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehaviours(java.util.List<TileEntityBehaviour> behaviours) |
void |
dropController(net.minecraft.block.BlockState state) |
protected void |
fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
net.minecraft.item.ItemStack |
getController() |
boolean |
hasUser() |
boolean |
isUsedBy(net.minecraft.entity.player.PlayerEntity player) |
static boolean |
playerInRange(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static boolean |
playerIsUsingLectern(net.minecraft.entity.player.PlayerEntity player) |
void |
setController(net.minecraft.item.ItemStack newController) |
void |
swapControllers(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.block.BlockState state) |
void |
tick() |
void |
tryStartUsing(net.minecraft.entity.player.PlayerEntity player) |
void |
tryStopUsing(net.minecraft.entity.player.PlayerEntity player) |
protected void |
write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
Hook only these in future subclasses of STE
|
void |
writeSafe(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket) |
addBehavioursDeferred, attachBehaviourLate, canPlayerUse, forEachBehaviour, getBehaviour, getRequiredItems, getWorld, initialize, isFluidHandlerCap, isItemHandlerCap, isVirtual, lazyTick, load, markVirtual, readClientUpdate, removeBehaviour, save, setLazyTickRate, setRemoved, writeToClientcauseBlockUpdate, containedChunk, getTileData, getUpdatePacket, getUpdateTag, handleUpdateTag, notifyUpdate, onDataPacket, packetTarget, sendDataclearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, triggerEventareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic LecternControllerTileEntity(net.minecraft.tileentity.TileEntityType<?> type)
public void addBehaviours(java.util.List<TileEntityBehaviour> behaviours)
addBehaviours in class SmartTileEntityprotected void write(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntitywrite in class SmartTileEntitypublic void writeSafe(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
writeSafe in interface IPartialSafeNBTwriteSafe in class SmartTileEntityprotected void fromTag(net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
SmartTileEntityfromTag in class SmartTileEntitypublic net.minecraft.item.ItemStack getController()
public boolean hasUser()
public boolean isUsedBy(net.minecraft.entity.player.PlayerEntity player)
public void tryStartUsing(net.minecraft.entity.player.PlayerEntity player)
public void tryStopUsing(net.minecraft.entity.player.PlayerEntity player)
public static boolean playerIsUsingLectern(net.minecraft.entity.player.PlayerEntity player)
public void tick()
tick in interface net.minecraft.tileentity.ITickableTileEntitytick in class SmartTileEntitypublic void setController(net.minecraft.item.ItemStack newController)
public void swapControllers(net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.block.BlockState state)
public void dropController(net.minecraft.block.BlockState state)
public static boolean playerInRange(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)