Class FurnaceEntity


public class FurnaceEntity extends ContainerEntity
  • Constructor Details

    • FurnaceEntity

      public FurnaceEntity(GlowBlock block)
  • Method Details

    • getState

      public GlowBlockState getState()
      Description copied from class: BlockEntity
      Create a new BlockState which will correspond to this block entity.
      Overrides:
      getState in class BlockEntity
      Returns:
      A GlowBlockState, or null to use a standard BlockState.
    • update

      public void update(GlowPlayer player)
      Description copied from class: BlockEntity
      Update this BlockEntity's visible state to the given player.
      Overrides:
      update in class BlockEntity
      Parameters:
      player - The player to update.
    • saveNbt

      public void saveNbt(CompoundTag tag)
      Description copied from class: BlockEntity
      Save this BlockEntity's data to NBT.
      Overrides:
      saveNbt in class ContainerEntity
      Parameters:
      tag - The tag to save to.
    • loadNbt

      public void loadNbt(CompoundTag tag)
      Description copied from class: BlockEntity
      Read this BlockEntity's data from the saved tag.
      Overrides:
      loadNbt in class ContainerEntity
      Parameters:
      tag - The tag to load from.
    • burn

      public void burn()
      Advances the cooking process for the tick.
    • getBurnTime

      public short getBurnTime()
    • setBurnTime

      public void setBurnTime(short burnTime)
    • getCookTime

      public short getCookTime()
    • setCookTime

      public void setCookTime(short cookTime)