程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.generator |
简化
世界 生成实现的类. |
org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
org.bukkit.material |
代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
|
限定符和类型 | 方法和说明 |
---|---|
MaterialData |
Material.getNewData(byte raw)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Class<? extends MaterialData> |
Material.getData()
获取这个物品相关的MaterialData类.
|
限定符和类型 | 方法和说明 |
---|---|
FallingBlock |
World.spawnFallingBlock(Location location,
MaterialData data)
|
限定符和类型 | 方法和说明 |
---|---|
MaterialData |
FlowerPot.getContents()
Gets the item present in this flower pot.
|
MaterialData |
BlockState.getData()
Gets the metadata for this block state.
|
限定符和类型 | 方法和说明 |
---|---|
void |
FlowerPot.setContents(MaterialData item)
Sets the item present in this flower pot.
|
void |
BlockState.setData(MaterialData data)
Sets the metadata for this block state.
|
限定符和类型 | 方法和说明 |
---|---|
MaterialData |
Enderman.getCarriedMaterial()
获取末影人手持的方块的id和数据.
|
MaterialData |
Minecart.getDisplayBlock()
Gets the display block for this minecart.
|
限定符和类型 | 方法和说明 |
---|---|
void |
Enderman.setCarriedMaterial(MaterialData material)
设置末影人手持的方块的id和数据.
|
void |
Minecart.setDisplayBlock(MaterialData material)
Sets the display block for this minecart.
|
限定符和类型 | 方法和说明 |
---|---|
MaterialData |
ChunkGenerator.ChunkData.getTypeAndData(int x,
int y,
int z)
Get the type and data of the block at x, y ,z.
|
限定符和类型 | 方法和说明 |
---|---|
void |
ChunkGenerator.ChunkData.setBlock(int x,
int y,
int z,
MaterialData material)
Set the block at x,y,z in the chunk data to material.
|
void |
ChunkGenerator.ChunkData.setRegion(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
MaterialData material)
Set a region of this chunk from xMin, yMin, zMin (inclusive)
to xMax, yMax, zMax (exclusive) to material.
|
限定符和类型 | 方法和说明 |
---|---|
MaterialData |
ItemStack.getData()
获取该物品堆的 MateralData 数据.
|
限定符和类型 | 方法和说明 |
---|---|
ShapelessRecipe |
ShapelessRecipe.addIngredient(int count,
MaterialData ingredient)
Adds multiples of the specified ingredient.
|
ShapelessRecipe |
ShapelessRecipe.addIngredient(MaterialData ingredient)
Adds the specified ingredient.
|
ShapelessRecipe |
ShapelessRecipe.removeIngredient(int count,
MaterialData ingredient)
Removes multiple instances of an ingredient from the list.
|
ShapelessRecipe |
ShapelessRecipe.removeIngredient(MaterialData ingredient)
Removes an ingredient from the list.
|
void |
ItemStack.setData(MaterialData data)
设置该物品堆的 MateralData 数据.
|
ShapedRecipe |
ShapedRecipe.setIngredient(char key,
MaterialData ingredient)
Sets the material that a character in the recipe shape refers to.
|
FurnaceRecipe |
FurnaceRecipe.setInput(MaterialData input)
设置此冶炼配方的原料.
|
构造器和说明 |
---|
FurnaceRecipe(ItemStack result,
MaterialData source)
创建一个熔炉冶炼配方.
|
FurnaceRecipe(ItemStack result,
MaterialData source,
float experience)
创建一个熔炉冶炼配方.
|
限定符和类型 | 类和说明 |
---|---|
class |
Banner |
class |
Bed
代表床.
|
class |
Button
代表按钮
|
class |
Cake |
class |
Cauldron
代表炼药锅
|
class |
Chest
代表箱子
|
class |
Coal
代表不同种类的煤(煤和木炭)
|
class |
CocoaPlant
代表可可豆
|
class |
Command
代表命令方块
|
class |
Comparator
代表开启或关闭状态的红石比较器.
|
class |
Crops
代表不同种类处于不同生长阶段的农作物
|
class |
DetectorRail
代表探测铁轨
|
class |
Diode
代表开启或关闭状态的红石中继器.
|
class |
DirectionalContainer
代表熔炉或发射器
|
class |
Dispenser
代表发射器.
|
class |
Door
代表门
这个类在以前被弃用,但现已经能与当今的门工作.由于Minecraft的门的内部表示,依赖于
isTopHalf() 的一些方法未被定义. |
class |
Dye
代表染料
|
class |
EnderChest
代表末影箱.
|
class |
ExtendedRails
这是
DetectorRail 和 PoweredRail 的父类. |
class |
FlowerPot
已过时。
花盆现在是Tile Entity(http://minecraft-zh.gamepedia.com/%E6%96%B9%E5%9D%97%E5%AE%9E%E4%BD%93%E5%80%BC), 使用
FlowerPot . |
class |
Furnace
代表熔炉.
|
class |
FurnaceAndDispenser
代表熔炉或发射器,两种定向容器.
|
class |
Gate
代表栅栏门
|
class |
Hopper
Represents a hopper in an active or deactivated state and facing in a
specific direction.
|
class |
Ladder
代表梯子
|
class |
Leaves
Represents the different types of leaf block that may be permanent or can
decay when too far from a log.
|
class |
Lever
代表拉杆
|
class |
LongGrass
代表两种不同的草丛.
|
class |
MonsterEggs
代表不同种类的刷怪蛋
|
class |
Mushroom
Represents a huge mushroom block with certain combinations of faces set to
cap, pores or stem.
|
class |
NetherWarts
代表地狱疣
|
class |
Observer
Represents an observer.
|
class |
PistonBaseMaterial
活塞类方块的Material data.
|
class |
PistonExtensionMaterial
代表活塞臂
|
class |
PoweredRail
代表充能铁轨
|
class |
PressurePlate
代表压力板
|
class |
Pumpkin
代表南瓜.
|
class |
Rails
代表Minecraft的铁轨.
|
class |
RedstoneTorch
代表红石火把
|
class |
RedstoneWire
代表红石线.
|
class |
Sandstone
代表不同种类的沙石.
|
class |
Sapling
代表不同种类的树苗.
|
class |
Sign
代表告示牌.
|
class |
SimpleAttachableMaterialData
用于实现了Attachable的MaterialData子类的实用类.
|
class |
Skull
代表头颅.
|
class |
SmoothBrick
代表不同种类的光滑的砖(石头、苔石、圆石、石砖).
|
class |
SpawnEgg
已过时。
请使用
SpawnEggMeta |
class |
Stairs
代表楼梯
|
class |
Step
代表不同种类的台阶。
|
class |
TexturedMaterial
代表有材质的物品,比如台阶和石砖
|
class |
Torch
代表火把
|
class |
TrapDoor
代表活板门
|
class |
Tree
Represents the different types of Tree block that face a direction.
|
class |
Tripwire
代表绊线
|
class |
TripwireHook
代表绊线钩
|
class |
Vine
代表藤蔓
|
class |
Wood
代表不同种类的木头方块.
|
class |
WoodenStep
代表不同种类的木台阶
|
class |
Wool
代表羊毛/地毯方块。
|
限定符和类型 | 方法和说明 |
---|---|
MaterialData |
MaterialData.clone() |
MaterialData |
FlowerPot.getContents()
已过时。
获取在花盆里的植物的方块.
|
限定符和类型 | 方法和说明 |
---|---|
void |
FlowerPot.setContents(MaterialData materialData)
已过时。
设置在花盆里的植物的方块.
|