枚举的使用
org.bukkit.DyeColor
使用DyeColor的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界内的三位像素(方块),包括一些特定的状态.与旗帜方块有关的类.
为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以存储在
物品堆的额外数据的接口.代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
-
org.bukkit中DyeColor的使用
返回DyeColor的org.bukkit中的方法修饰符和类型方法说明DyeColor.getByColor(@NotNull Color color) 获取给定的颜色值的染料颜色.DyeColor.getByDyeData(byte data) 已过时。不安全的参数DyeColor.getByFireworkColor(@NotNull Color color) 获取给定的颜色颜色值的染料颜色.DyeColor.getByWoolData(byte data) 已过时。魔法值DyeColor.legacyValueOf(@Nullable String name) 已过时。legacy use onlystatic DyeColor返回带有指定名称的该类型的枚举常量。static DyeColor[]DyeColor.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。参数类型为DyeColor的org.bukkit中的方法 -
org.bukkit.block中DyeColor的使用
返回DyeColor的org.bukkit.block中的方法修饰符和类型方法说明Banner.getBaseColor()返回这个旗帜的底色.ShulkerBox.getColor()获取该潜影盒对应的颜色.Sign.getColor()已过时。A sign may have multiple writable sides now.参数类型为DyeColor的org.bukkit.block中的方法 -
org.bukkit.block.banner中DyeColor的使用
参数类型为DyeColor的org.bukkit.block.banner中的构造器 -
org.bukkit.entity中DyeColor的使用
返回DyeColor的org.bukkit.entity中的方法修饰符和类型方法说明TropicalFish.getBodyColor()Gets the color of the fish's body.Cat.getCollarColor()获取这只猫的项圈颜色.Wolf.getCollarColor()获取这只狼的项圈颜色.TropicalFish.getPatternColor()Gets the color of the fish's pattern.参数类型为DyeColor的org.bukkit.entity中的方法修饰符和类型方法说明void向该玩家发送一个伪造的牌子(Sign)上的字的更改数据包.这不会改变世界中的任何方块.voidPlayer.sendSignChange(@NotNull Location loc, @Nullable String[] lines, @NotNull DyeColor dyeColor, boolean hasGlowingText) 向该玩家发送一个伪造的牌子(Sign)上的字的更改数据包.这不会改变世界中的任何方块.voidTropicalFish.setBodyColor(@NotNull DyeColor color) Sets the color of the fish's bodyvoidCat.setCollarColor(@NotNull DyeColor color) 设置这只猫的项圈颜色.voidWolf.setCollarColor(@NotNull DyeColor color) 设置这只狼的项圈颜色.voidTropicalFish.setPatternColor(@NotNull DyeColor color) Sets the color of the fish's pattern -
org.bukkit.event.entity中DyeColor的使用
参数类型为DyeColor的org.bukkit.event.entity中的方法参数类型为DyeColor的org.bukkit.event.entity中的构造器 -
org.bukkit.inventory.meta中DyeColor的使用
修饰符和类型方法说明ShieldMeta.getBaseColor()Gets the base color for this shield.TropicalFishBucketMeta.getBodyColor()获取热带鱼身体的颜色.TropicalFishBucketMeta.getPatternColor()获取热带鱼花纹的颜色.参数类型为DyeColor的org.bukkit.inventory.meta中的方法修饰符和类型方法说明voidShieldMeta.setBaseColor(@Nullable DyeColor color) Sets the base color for this shield.voidTropicalFishBucketMeta.setBodyColor(@NotNull DyeColor color) 设置热带鱼身体的颜色.voidTropicalFishBucketMeta.setPatternColor(@NotNull DyeColor color) 设置热带鱼花纹的颜色. -
org.bukkit.material中DyeColor的使用
返回DyeColor的org.bukkit.material中的方法修饰符和类型方法说明Colorable.getColor()Gets the color of this object.Dye.getColor()已过时。Gets the current color of this dyeWool.getColor()已过时。获取染料(羊毛)的颜色.参数类型为DyeColor的org.bukkit.material中的方法修饰符和类型方法说明voidSets the color of this object to the specified DyeColor.void已过时。Sets the color of this dyevoid已过时。设置染料(羊毛)的颜色.参数类型为DyeColor的org.bukkit.material中的构造器