Class LecternControllerTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
All Implemented Interfaces:
ISpecialBlockEntityItemRequirement, 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>

public class LecternControllerTileEntity extends SmartTileEntity
  • 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

      public void addBehaviours(List<TileEntityBehaviour> behaviours)
      Specified by:
      addBehaviours in class SmartTileEntity
    • write

      protected void write(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      write in class SmartTileEntity
    • writeSafe

      public void writeSafe(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Specified by:
      writeSafe in interface IPartialSafeNBT
      Overrides:
      writeSafe in class SmartTileEntity
    • read

      protected void read(net.minecraft.nbt.CompoundTag compound, boolean clientPacket)
      Description copied from class: SmartTileEntity
      Hook only these in future subclasses of STE
      Overrides:
      read in class SmartTileEntity
    • 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:
      tick in class SmartTileEntity
    • 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)