Class RadiosmitherBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
com.codinglitch.simpleradio.core.registry.blocks.RadiosmitherBlockEntity
All Implemented Interfaces:
net.fabricmc.fabric.api.attachment.v1.AttachmentTarget, net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity, net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable

public class RadiosmitherBlockEntity extends net.minecraft.world.level.block.entity.BaseContainerBlockEntity
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

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

    level, remove, worldPosition

    Fields inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    NBT_ATTACHMENT_KEY

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
     
    void
     
    protected net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int i, net.minecraft.world.entity.player.Inventory inventory)
     
    @Nullable net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int i, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player)
     
    int
     
    protected net.minecraft.network.chat.Component
     
    net.minecraft.network.chat.Component
     
    net.minecraft.world.item.ItemStack
    getItem(int i)
     
    boolean
     
    void
    load(net.minecraft.nbt.CompoundTag tag)
     
    net.minecraft.world.item.ItemStack
    removeItem(int i, int count)
     
    net.minecraft.world.item.ItemStack
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag tag)
     
    void
    setItem(int i, net.minecraft.world.item.ItemStack itemStack)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     
    static void
    tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, RadiosmitherBlockEntity blockEntity)
     
    net.minecraft.world.item.ItemStack
     

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

    canOpen, canUnlock, getCustomName, getName, setCustomName

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

    addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, getUpdatePacket, getUpdateTag, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.fabricmc.fabric.api.attachment.v1.AttachmentTarget

    getAttached, getAttachedOrCreate, getAttachedOrCreate, getAttachedOrElse, getAttachedOrGet, getAttachedOrSet, getAttachedOrThrow, hasAttached, modifyAttached, removeAttached, setAttached

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpen

    Methods inherited from interface net.fabricmc.fabric.api.screenhandler.v1.FabricScreenHandlerFactory

    shouldCloseCurrentScreen

    Methods inherited from interface net.minecraft.world.Nameable

    hasCustomName

    Methods inherited from interface net.fabricmc.fabric.api.blockview.v2.RenderDataBlockEntity

    getRenderData
  • Field Details

  • Constructor Details

    • RadiosmitherBlockEntity

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

    • tick

      public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, RadiosmitherBlockEntity blockEntity)
    • getContainerSize

      public int getContainerSize()
    • isEmpty

      public boolean isEmpty()
    • getItem

      public net.minecraft.world.item.ItemStack getItem(int i)
    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int i, int count)
    • removeItemNoUpdate

      public net.minecraft.world.item.ItemStack removeItemNoUpdate(int i)
    • setItem

      public void setItem(int i, net.minecraft.world.item.ItemStack itemStack)
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
      Specified by:
      getDisplayName in interface net.minecraft.world.MenuProvider
      Specified by:
      getDisplayName in interface net.minecraft.world.Nameable
      Overrides:
      getDisplayName in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • getDefaultName

      protected net.minecraft.network.chat.Component getDefaultName()
      Specified by:
      getDefaultName in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • createMenu

      @Nullable public @Nullable net.minecraft.world.inventory.AbstractContainerMenu createMenu(int i, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.entity.player.Player player)
      Specified by:
      createMenu in interface net.minecraft.world.inventory.MenuConstructor
      Overrides:
      createMenu in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • createMenu

      protected net.minecraft.world.inventory.AbstractContainerMenu createMenu(int i, net.minecraft.world.entity.player.Inventory inventory)
      Specified by:
      createMenu in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • tinkering

      public net.minecraft.world.item.ItemStack tinkering()
    • applying

      public net.minecraft.world.item.ItemStack applying()
    • load

      public void load(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • clearContent

      public void clearContent()