类的使用
org.bukkit.material.MaterialData
使用MaterialData的程序包
程序包
说明
Bukkit的常用类.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.简化
世界
生成实现的类.参与操作玩家物品栏和物品交互的类.
代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
-
org.bukkit中MaterialData的使用
返回MaterialData的org.bukkit中的方法返回变量类型为MaterialData的类型的org.bukkit中的方法参数类型为MaterialData的org.bukkit中的方法 -
org.bukkit.block中MaterialData的使用
返回MaterialData的org.bukkit.block中的方法修饰符和类型方法说明FlowerPot.getContents()
Gets the item present in this flower pot.BlockState.getData()
Gets the metadata for this block state.参数类型为MaterialData的org.bukkit.block中的方法修饰符和类型方法说明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. -
org.bukkit.entity中MaterialData的使用
修饰符和类型方法说明Enderman.getCarriedMaterial()
获取末影人手持的方块的id和数据.Minecart.getDisplayBlock()
Gets the display block for this minecart.参数类型为MaterialData的org.bukkit.entity中的方法修饰符和类型方法说明void
Enderman.setCarriedMaterial
(MaterialData material) 设置末影人手持的方块的id和数据.void
Minecart.setDisplayBlock
(MaterialData material) Sets the display block for this minecart. -
org.bukkit.generator中MaterialData的使用
修饰符和类型方法说明ChunkGenerator.ChunkData.getTypeAndData
(int x, int y, int z) Get the type and data of the block at x, y ,z.参数类型为MaterialData的org.bukkit.generator中的方法修饰符和类型方法说明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. -
org.bukkit.inventory中MaterialData的使用
参数类型为MaterialData的org.bukkit.inventory中的方法修饰符和类型方法说明ShapelessRecipe.addIngredient
(int count, MaterialData ingredient) Adds multiples of the specified ingredient.ShapelessRecipe.addIngredient
(MaterialData ingredient) Adds the specified ingredient.ShapelessRecipe.removeIngredient
(int count, MaterialData ingredient) Removes multiple instances of an ingredient from the list.ShapelessRecipe.removeIngredient
(MaterialData ingredient) Removes an ingredient from the list.void
ItemStack.setData
(MaterialData data) 设置该物品堆的 MateralData 数据.ShapedRecipe.setIngredient
(char key, MaterialData ingredient) Sets the material that a character in the recipe shape refers to.FurnaceRecipe.setInput
(MaterialData input) 设置此冶炼配方的原料.参数类型为MaterialData的org.bukkit.inventory中的构造器限定符构造器说明FurnaceRecipe
(ItemStack result, MaterialData source) 创建一个熔炉冶炼配方.FurnaceRecipe
(ItemStack result, MaterialData source, float experience) 创建一个熔炉冶炼配方. -
org.bukkit.material中MaterialData的使用
修饰符和类型类说明class
class
代表床.class
代表按钮class
class
代表炼药锅class
代表箱子class
代表不同种类的煤(煤和木炭)class
代表可可豆class
代表命令方块class
代表开启或关闭状态的红石比较器.class
代表不同种类处于不同生长阶段的农作物class
代表探测铁轨class
代表开启或关闭状态的红石中继器.class
代表熔炉或发射器class
代表发射器.class
代表门 这个类在以前被弃用,但现已经能与当今的门工作.由于Minecraft的门的内部表示,依赖于isTopHalf()
的一些方法未被定义.class
代表染料class
代表末影箱.class
这是DetectorRail
和PoweredRail
的父类.class
已过时。花盆现在是Tile Entity(http://minecraft-zh.gamepedia.com/%E6%96%B9%E5%9D%97%E5%AE%9E%E4%BD%93%E5%80%BC), 使用FlowerPot
.class
代表熔炉.class
代表熔炉或发射器,两种定向容器.class
代表栅栏门class
Represents a hopper in an active or deactivated state and facing in a specific direction.class
代表梯子class
Represents the different types of leaf block that may be permanent or can decay when too far from a log.class
代表拉杆class
代表两种不同的草丛.class
代表不同种类的刷怪蛋class
Represents a huge mushroom block with certain combinations of faces set to cap, pores or stem.class
代表地狱疣class
Represents an observer.class
活塞类方块的Material data.class
代表活塞臂class
代表充能铁轨class
代表压力板class
代表南瓜.class
代表Minecraft的铁轨.class
代表红石火把class
代表红石线.class
代表不同种类的沙石.class
代表不同种类的树苗.class
代表告示牌.class
用于实现了Attachable的MaterialData子类的实用类.class
代表头颅.class
代表不同种类的光滑的砖(石头、苔石、圆石、石砖).class
已过时。请使用SpawnEggMeta
class
代表楼梯class
代表不同种类的台阶。class
代表有材质的物品,比如台阶和石砖class
代表火把class
代表活板门class
Represents the different types of Tree block that face a direction.class
代表绊线class
代表绊线钩class
代表藤蔓class
代表不同种类的木头方块.class
代表不同种类的木台阶class
代表羊毛/地毯方块。参数类型为MaterialData的org.bukkit.material中的方法