枚举的使用
org.bukkit.entity.EntityType
使用EntityType的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.参与操作玩家物品栏和物品交互的类.
用于操作可以存储在
物品堆的额外数据的接口.Isolated components which may form part of item meta.
代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
Classes dedicated to handling data pack information.
用于管理客户端计分板显示系统的类.
Classes related to entity spawners.
-
org.bukkit中EntityType的使用
类型参数类型为EntityType的org.bukkit中的字段修饰符和类型字段说明static final Registry<EntityType>Registry.ENTITY_TYPEServer entity types.static final Tag<EntityType>Vanilla tag representing all entities sensitive to aquatic enchantments..static final Tag<EntityType>Vanilla tag representing arrows.static final Tag<EntityType>Vanilla tag representing all entities sensitive to arthropod enchantments..static final Tag<EntityType>Vanilla tag representing which entities axolotls are always hostile to.static final Tag<EntityType>Vanilla tag representing axolotl targets.static final Tag<EntityType>Vanilla tag representing entities which can live in beehives.static final Tag<EntityType>Vanilla tag representing all entities which can be harnessed.static final Tag<EntityType>Vanilla tag representing all projectiles which can be punched back.static final Tag<EntityType>Vanilla tag representing entities which can turn in boats.static final Tag<EntityType>Vanilla tag representing all projectiles which can be punched back.static final Tag<EntityType>已过时。static final Tag<EntityType>Vanilla tag representing entities which deflect projectiles.static final Tag<EntityType>Vanilla tag representing entities which are dismounted when underwater.static final Tag<EntityType>Vanilla tag representing entities which are immune from fall damage.static final Tag<EntityType>Vanilla tag representing entities extra susceptible to freezing.static final Tag<EntityType>Vanilla tag representing entities immune from freezing.static final Tag<EntityType>Vanilla tag representing entities which can be eaten by frogs.static final Tag<EntityType>Vanilla tag representing all entities which ignores poison and regeneration effects.static final Tag<EntityType>Vanilla tag representing all entities sensitive to illager enchantments.static final Tag<EntityType>Vanilla tag representing all entities which are friendly with illagers.static final Tag<EntityType>Vanilla tag representing all entities which are immune from the infested effect.static final Tag<EntityType>Vanilla tag representing all entities which are immune from the oozing effect.static final Tag<EntityType>Vanilla tag representing projectiles.static final Tag<EntityType>Vanilla tag representing all entities which are sensitive to inverted healing and harm potion effects.static final Tag<EntityType>Vanilla tag representing all entities which do not receive anger from wind charges.static final Tag<EntityType>Vanilla tag representing entities which are not controlled by their mount.static final Tag<EntityType>Vanilla tag representing all entities which are not scary for pufferfish.static final Tag<EntityType>Vanilla tag representing mobs which can walk on powder snow.static final Tag<EntityType>Vanilla tag representing raiders.static final Tag<EntityType>Vanilla tag representing all projectiles which can be punched back.static final Tag<EntityType>Vanilla tag representing all entities which are sensitive to the bane_of_arthropods enchantment.static final Tag<EntityType>Vanilla tag representing all entities which are sensitive to impaling.static final Tag<EntityType>Vanilla tag representing all entities which are sensitive to the smite enchantment.static final Tag<EntityType>Vanilla tag representing skeletons.static final Tag<EntityType>Vanilla tag representing all entities which are friendly with withers.参数类型为EntityType的org.bukkit中的方法修饰符和类型方法说明voidOfflinePlayer.decrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) 把该玩家的统计信息中跟实体有关的统计项中的某种实体(EntityType)的数量-1.voidOfflinePlayer.decrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) 将该玩家的统计信息中某个跟实体有关的统计项中的某实体类型(EntityType)减少指定的值.intOfflinePlayer.getStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) 获得该玩家的统计信息中跟实体有关的统计项中的某实体(EntityType)数量.UnsafeValues.getTranslationKey(EntityType entityType) 已过时。voidOfflinePlayer.incrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType) 把该玩家的统计信息中跟实体有关的统计项中的某种实体(EntityType)的数量+1.voidOfflinePlayer.incrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) 将该玩家的统计信息中的某个跟实体有关的统计项的某实体类型(EntityType)加上指定的数值.voidOfflinePlayer.setStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int newValue) 设置该玩家的统计信息中某个跟实体有关的统计项的某实体类型(EntityType)为某个数值.RegionAccessor.spawnEntity(@NotNull Location location, @NotNull EntityType type) 在指定的位置创建一个实体.RegionAccessor.spawnEntity(@NotNull Location loc, @NotNull EntityType type, boolean randomizeData) Creates a new entity at the givenLocation. -
org.bukkit.entity中EntityType的使用
返回EntityType的org.bukkit.entity中的方法修饰符和类型方法说明static @Nullable EntityTypeEntityType.fromId(int id) 已过时。不安全的参数static @Nullable EntityType已过时。不安全的参数EntitySnapshot.getEntityType()Gets the type of entity this template holds.Entity.getType()获取实体类型static EntityType返回带有指定名称的该类型的枚举常量。static EntityType[]EntityType.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。 -
org.bukkit.event.entity中EntityType的使用
-
org.bukkit.event.player中EntityType的使用
修饰符和类型方法说明PlayerStatisticIncrementEvent.getEntityType()如果getStatistic()是关于实体的统计信息,获取该统计数据的实体种类,否则返回null.PlayerEggThrowEvent.getHatchingType()获取将被孵化的生物类型 (默认为EntityType.CHICKEN ).参数类型为EntityType的org.bukkit.event.player中的方法参数类型为EntityType的org.bukkit.event.player中的构造器限定符构造器说明PlayerEggThrowEvent(@NotNull Player player, @NotNull Egg egg, boolean hatching, byte numHatches, @NotNull EntityType hatchingType) PlayerStatisticIncrementEvent(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue, @NotNull EntityType entityType) -
org.bukkit.inventory中EntityType的使用
参数类型为EntityType的org.bukkit.inventory中的方法修饰符和类型方法说明ItemFactory.getSpawnEgg(@NotNull EntityType type) Gets aMaterialrepresenting the spawn egg for the providedEntityType. -
org.bukkit.inventory.meta中EntityType的使用
参数类型为EntityType的org.bukkit.inventory.meta中的方法 -
org.bukkit.inventory.meta.components中EntityType的使用
返回变量类型为EntityType的类型的org.bukkit.inventory.meta.components中的方法修饰符和类型方法说明voidEquippableComponent.setAllowedEntities(@Nullable EntityType entities) Sets the entities which can equip this item.类型变量类型为EntityType的org.bukkit.inventory.meta.components中的方法参数修饰符和类型方法说明voidEquippableComponent.setAllowedEntities(@Nullable Collection<EntityType> entities) Sets the entities which can equip this item.voidEquippableComponent.setAllowedEntities(@Nullable Tag<EntityType> tag) Set the entity types (represented as an entityTag) which can equip this item. -
org.bukkit.material中EntityType的使用
参数类型为EntityType的org.bukkit.material中的方法参数类型为EntityType的org.bukkit.material中的构造器 -
org.bukkit.packs中EntityType的使用
参数类型为EntityType的org.bukkit.packs中的方法修饰符和类型方法说明booleanDataPackManager.isEnabledByFeature(@NotNull EntityType entityType, @NotNull World world) Gets if the EntityType is enabled for use by the Features in World. -
org.bukkit.scoreboard中EntityType的使用
参数类型为EntityType的org.bukkit.scoreboard中的方法 -
org.bukkit.spawner中EntityType的使用
返回EntityType的org.bukkit.spawner中的方法参数类型为EntityType的org.bukkit.spawner中的方法修饰符和类型方法说明voidBaseSpawner.setSpawnedType(@Nullable EntityType creatureType) Set the spawner's creature type.
Tag.ENTITY_TYPES_DEFLECTS_PROJECTILES