类的使用
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中的方法修饰符和类型方法说明voidFlowerPot.setContents(MaterialData item) Sets the item present in this flower pot.voidBlockState.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中的方法修饰符和类型方法说明voidEnderman.setCarriedMaterial(MaterialData material) 设置末影人手持的方块的id和数据.voidMinecart.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中的方法修饰符和类型方法说明voidChunkGenerator.ChunkData.setBlock(int x, int y, int z, MaterialData material) Set the block at x,y,z in the chunk data to material.voidChunkGenerator.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.voidItemStack.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的使用
修饰符和类型类说明classclass代表床.class代表按钮classclass代表炼药锅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代表栅栏门classRepresents a hopper in an active or deactivated state and facing in a specific direction.class代表梯子classRepresents the different types of leaf block that may be permanent or can decay when too far from a log.class代表拉杆class代表两种不同的草丛.class代表不同种类的刷怪蛋classRepresents a huge mushroom block with certain combinations of faces set to cap, pores or stem.class代表地狱疣classRepresents an observer.class活塞类方块的Material data.class代表活塞臂class代表充能铁轨class代表压力板class代表南瓜.class代表Minecraft的铁轨.class代表红石火把class代表红石线.class代表不同种类的沙石.class代表不同种类的树苗.class代表告示牌.class用于实现了Attachable的MaterialData子类的实用类.class代表头颅.class代表不同种类的光滑的砖(石头、苔石、圆石、石砖).class已过时。请使用SpawnEggMetaclass代表楼梯class代表不同种类的台阶。class代表有材质的物品,比如台阶和石砖class代表火把class代表活板门classRepresents the different types of Tree block that face a direction.class代表绊线class代表绊线钩class代表藤蔓class代表不同种类的木头方块.class代表不同种类的木台阶class代表羊毛/地毯方块。参数类型为MaterialData的org.bukkit.material中的方法