Class TinyPotatoBlockEntity

All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.Nameable, net.minecraft.world.WorldlyContainer

public class TinyPotatoBlockEntity extends ExposedSimpleInventoryBlockEntity implements net.minecraft.world.Nameable
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
     
    net.minecraft.network.chat.Component
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Constructor Summary

    Constructors
    Constructor
    Description
    TinyPotatoBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, TinyPotatoBlockEntity self)
     
    protected net.minecraft.world.SimpleContainer
     
    @Nullable net.minecraft.network.chat.Component
     
    @NotNull net.minecraft.network.chat.Component
     
    @NotNull net.minecraft.network.chat.Component
     
    void
    interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side)
     
    void
    readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
     
    void
     
    boolean
    triggerEvent(int id, int param)
     
    void
    writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
     

    Methods inherited from class vazkii.botania.common.block.block_entity.SimpleInventoryBlockEntity

    clearContent, getItemHandler, inventorySize

    Methods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity

    getUpdatePacket, getUpdateTag, loadAdditional, saveAdditional

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setComponents, setLevel, setRemoved

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.Clearable

    clearContent

    Methods inherited from interface net.minecraft.world.Container

    canTakeItem, getMaxStackSize, hasAnyMatching

    Methods inherited from interface net.minecraft.world.Nameable

    hasCustomName
  • Field Details

    • jumpTicks

      public int jumpTicks
    • name

      public net.minecraft.network.chat.Component name
  • Constructor Details

    • TinyPotatoBlockEntity

      public TinyPotatoBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • interact

      public void interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side)
    • triggerEvent

      public boolean triggerEvent(int id, int param)
      Overrides:
      triggerEvent in class net.minecraft.world.level.block.entity.BlockEntity
    • commonTick

      public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, TinyPotatoBlockEntity self)
    • setChanged

      public void setChanged()
      Specified by:
      setChanged in interface net.minecraft.world.Container
      Overrides:
      setChanged in class net.minecraft.world.level.block.entity.BlockEntity
    • writePacketNBT

      public void writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      writePacketNBT in class SimpleInventoryBlockEntity
    • readPacketNBT

      public void readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries)
      Overrides:
      readPacketNBT in class SimpleInventoryBlockEntity
    • createItemHandler

      protected net.minecraft.world.SimpleContainer createItemHandler()
      Specified by:
      createItemHandler in class SimpleInventoryBlockEntity
    • getName

      @NotNull public @NotNull net.minecraft.network.chat.Component getName()
      Specified by:
      getName in interface net.minecraft.world.Nameable
    • getCustomName

      @Nullable public @Nullable net.minecraft.network.chat.Component getCustomName()
      Specified by:
      getCustomName in interface net.minecraft.world.Nameable
    • getDisplayName

      @NotNull public @NotNull net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.Nameable