类 BlockEntityFurnace
java.lang.Object
cn.nukkit.math.Vector3
cn.nukkit.positiontracking.NamedPosition
cn.nukkit.level.Position
cn.nukkit.blockentity.BlockEntity
cn.nukkit.blockentity.BlockEntitySpawnable
cn.nukkit.blockentity.BlockEntityFurnace
- 所有已实现的接口:
BlockEntityContainer
,BlockEntityNameable
,InventoryHolder
,Cloneable
- 直接已知子类:
BlockEntityBlastFurnace
,BlockEntitySmoker
public class BlockEntityFurnace
extends BlockEntitySpawnable
implements InventoryHolder, BlockEntityContainer, BlockEntityNameable
- 作者:
- MagicDroidX
-
字段概要
字段从类继承的字段 cn.nukkit.blockentity.BlockEntity
BANNER, BARREL, BEACON, BED, BEEHIVE, BELL, BLAST_FURNACE, BREWING_STAND, CAMPFIRE, CAULDRON, CHEST, chunk, closed, COMMAND_BLOCK, COMPARATOR, CONDUIT, count, DAYLIGHT_DETECTOR, DISPENSER, DROPPER, ENCHANT_TABLE, END_GATEWAY, END_PORTAL, ENDER_CHEST, FLOWER_POT, FURNACE, HOPPER, id, ITEM_FRAME, JUKEBOX, lastUpdate, LECTERN, LODESTONE, MOB_SPAWNER, movable, MOVING_BLOCK, MUSIC, name, namedTag, NETHER_REACTOR, PISTON_ARM, SCULK_CATALYST, SCULK_SENSOR, SCULK_SHRIEKER, server, SHULKER_BOX, SIGN, SKULL, SMOKER, TARGET, timing
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
void
close()
int
protected int
int
protected String
int
protected String
protected int
protected InventoryType
getItem
(int index) 返回一个存储在容器里的物品的Item
对象。int
getName()
返回这个事物的名字。int
getSize()
返回这个容器最多能包含的物品数量。protected int
getSlotIndex
(int index) protected int
boolean
hasName()
返回这个事物是否有名字。protected void
boolean
void
loadNBT()
protected SmeltingRecipe
matchRecipe
(Item raw) void
onBreak()
boolean
onUpdate()
void
saveNBT()
void
setBurnDuration
(int burnDuration) protected void
setBurning
(boolean burning) void
setBurnTime
(int burnTime) void
setCookTime
(int cookTime) void
把一个物品存储进容器。void
setMaxTime
(int maxTime) void
设置或更改这个事物的名字。从类继承的方法 cn.nukkit.blockentity.BlockEntitySpawnable
getSpawnPacket, getSpawnPacket, spawnTo, spawnToAll, updateCompoundTag
从类继承的方法 cn.nukkit.blockentity.BlockEntity
createBlockEntity, createBlockEntity, createBlockEntity, getBlock, getCleanedNBT, getDefaultCompound, getId, getLevelBlockEntity, getSaveId, isMovable, isObservable, onBreak, registerBlockEntity, scheduleUpdate, setDirty
从类继承的方法 cn.nukkit.level.Position
abs, add, add, add, add, ceil, clone, divide, floor, fromObject, fromObject, getChunk, getLevel, getLevelBlock, getLevelBlock, getLevelBlock, getLevelBlockAround, getLevelBlockAtLayer, getLevelBlockState, getLevelBlockState, getLevelName, getLocation, getSide, getSide, getTickCachedLevelBlock, getTickCachedLevelBlockAtLayer, getTypedBlockEntity, getValidLevel, isValid, multiply, round, setComponents, setComponents, setLevel, setStrong, setWeak, subtract, subtract, subtract, subtract, subtract, toString
从类继承的方法 cn.nukkit.positiontracking.NamedPosition
matchesNamedPosition
从类继承的方法 cn.nukkit.math.Vector3
asBlockVector3, asVector3f, cross, distance, distance, distanceManhattan, distanceSquared, distanceSquared, dot, down, down, east, east, equals, getAxis, getChunkSectionY, getChunkVector, getChunkX, getChunkZ, getFloorX, getFloorY, getFloorZ, getForward, getIntermediateWithXValue, getIntermediateWithYValue, getIntermediateWithZValue, getRight, getSideVec, getSouth, getUp, getWest, getX, getY, getZ, hashCode, length, lengthSquared, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, maxPlainDistance, normalize, north, north, rawHashCode, setComponentsAdding, setComponentsAdding, setX, setY, setZ, south, south, up, up, west, west
-
字段详细资料
-
inventory
-
burnTime
protected int burnTime -
burnDuration
protected int burnDuration -
cookTime
protected int cookTime -
maxTime
protected int maxTime
-
-
构造器详细资料
-
BlockEntityFurnace
-
-
方法详细资料
-
getInventoryType
-
initBlockEntity
protected void initBlockEntity()- 覆盖:
initBlockEntity
在类中BlockEntitySpawnable
-
getFurnaceName
-
getClientName
-
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
从接口复制的说明: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
- 覆盖:
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
从接口复制的说明:BlockEntityContainer
返回一个存储在容器里的物品的Item
对象。
Returns an item that stores in this container, as anItem
object.- 指定者:
getItem
在接口中BlockEntityContainer
- 参数:
index
- 这个物品的索引序号。
The index number of this item.- 返回:
- 这个物品的
Item
对象。
AnItem
object for this item.
-
setItem
从接口复制的说明: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
对象。
TheItem
object that describes this item.
-
getInventory
- 指定者:
getInventory
在接口中InventoryHolder
-
getIdleBlockId
-
getBurningBlockId
-
setBurning
-
checkFuel
-
matchRecipe
-
getSpeedMultiplier
-
onUpdate
public boolean onUpdate()- 覆盖:
onUpdate
在类中BlockEntity
-
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)
-