类 BlockEntityFurnace

所有已实现的接口:
BlockEntityContainer, BlockEntityNameable, InventoryHolder, Cloneable
直接已知子类:
BlockEntityBlastFurnace, BlockEntitySmoker

public class BlockEntityFurnace extends BlockEntitySpawnable implements InventoryHolder, BlockEntityContainer, BlockEntityNameable
作者:
MagicDroidX
  • 字段详细资料

    • inventory

      protected FurnaceInventory inventory
    • burnTime

      protected int burnTime
    • burnDuration

      protected int burnDuration
    • cookTime

      protected int cookTime
    • maxTime

      protected int maxTime
  • 构造器详细资料

  • 方法详细资料

    • getInventoryType

      @PowerNukkitOnly protected InventoryType getInventoryType()
    • initBlockEntity

      protected void initBlockEntity()
      覆盖:
      initBlockEntity 在类中 BlockEntitySpawnable
    • getFurnaceName

      @PowerNukkitOnly protected String getFurnaceName()
    • getClientName

      @PowerNukkitOnly protected String getClientName()
    • getName

      public String getName()
      从接口复制的说明: BlockEntityNameable
      返回这个事物的名字。
      Gets the name of this object.
      指定者:
      getName 在接口中 BlockEntityNameable
      覆盖:
      getName 在类中 BlockEntity
      返回:
      这个事物的名字。
      The name of this object.
    • hasName

      public boolean hasName()
      从接口复制的说明: BlockEntityNameable
      返回这个事物是否有名字。
      Whether this object has a name.
      指定者:
      hasName 在接口中 BlockEntityNameable
      返回:
      如果有名字,返回 true
      true for this object has a name.
    • setName

      public void setName(String name)
      从接口复制的说明: BlockEntityNameable
      设置或更改这个事物的名字。
      Changes the name of this object, or names it.
      指定者:
      setName 在接口中 BlockEntityNameable
      参数:
      name - 这个事物的新名字。
      The new name of this object.
    • close

      public void close()
      覆盖:
      close 在类中 BlockEntity
    • onBreak

      public void onBreak()
      覆盖:
      onBreak 在类中 BlockEntity
    • saveNBT

      public void saveNBT()
      覆盖:
      saveNBT 在类中 BlockEntity
    • loadNBT

      @Since("1.6.0.0-PNX") public void loadNBT()
      覆盖:
      loadNBT 在类中 BlockEntity
    • isBlockEntityValid

      public boolean isBlockEntityValid()
      指定者:
      isBlockEntityValid 在类中 BlockEntity
    • getSize

      public int getSize()
      从接口复制的说明: BlockEntityContainer
      返回这个容器最多能包含的物品数量。
      Returns the max number of items that this container can contain.
      指定者:
      getSize 在接口中 BlockEntityContainer
      返回:
      最多能包含的物品数量。
      The max number.
    • getSlotIndex

      protected int getSlotIndex(int index)
    • getItem

      public Item getItem(int index)
      从接口复制的说明: BlockEntityContainer
      返回一个存储在容器里的物品的Item对象。
      Returns an item that stores in this container, as an Item object.
      指定者:
      getItem 在接口中 BlockEntityContainer
      参数:
      index - 这个物品的索引序号。
      The index number of this item.
      返回:
      这个物品的 Item对象。
      An Item object for this item.
    • setItem

      public void setItem(int index, Item item)
      从接口复制的说明: BlockEntityContainer
      把一个物品存储进容器。
      Sets or stores this item into this container.

      注意:如果这个容器相应的索引序号已经有了物品,那么新存储的物品将会替换原有的物品。
      Notice: If there is already an item for this index number, the new item being stored will REPLACE the old one.

      指定者:
      setItem 在接口中 BlockEntityContainer
      参数:
      index - 这个物品的索引序号。
      The index number of this item.
      item - 描述这个物品的 Item对象。
      The Item object that describes this item.
    • getInventory

      public FurnaceInventory getInventory()
      指定者:
      getInventory 在接口中 InventoryHolder
    • getIdleBlockId

      @PowerNukkitOnly protected int getIdleBlockId()
    • getBurningBlockId

      @PowerNukkitOnly protected int getBurningBlockId()
    • setBurning

      @PowerNukkitOnly protected void setBurning(boolean burning)
    • checkFuel

      protected void checkFuel(Item fuel)
    • matchRecipe

      @PowerNukkitOnly protected SmeltingRecipe matchRecipe(Item raw)
    • getSpeedMultiplier

      @PowerNukkitOnly protected int getSpeedMultiplier()
    • onUpdate

      public boolean onUpdate()
      覆盖:
      onUpdate 在类中 BlockEntity
    • getSpawnCompound

      public CompoundTag getSpawnCompound()
      覆盖:
      getSpawnCompound 在类中 BlockEntitySpawnable
    • getBurnTime

      public int getBurnTime()
    • setBurnTime

      public void setBurnTime(int burnTime)
    • getBurnDuration

      public int getBurnDuration()
    • setBurnDuration

      public void setBurnDuration(int burnDuration)
    • getCookTime

      public int getCookTime()
    • setCookTime

      public void setCookTime(int cookTime)
    • getMaxTime

      public int getMaxTime()
    • setMaxTime

      public void setMaxTime(int maxTime)