枚举的使用
org.bukkit.entity.EntityType
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.参与操作玩家物品栏和物品交互的类.
用于操作可以存储在
物品堆
的额外数据的接口.代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
Classes dedicated to handling data pack information.
用于管理客户端计分板显示系统的类.
Classes related to entity spawners.
-
org.bukkit中EntityType的使用
修饰符和类型字段说明static final Registry<EntityType>
Registry.ENTITY_TYPE
Server 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 entities which can turn in boats.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.修饰符和类型方法说明void
OfflinePlayer.decrementStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType) 把该玩家的统计信息中跟实体有关的统计项中的某种实体(EntityType
)的数量-1.void
OfflinePlayer.decrementStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) 将该玩家的统计信息中某个跟实体有关的统计项中的某实体类型(EntityType
)减少指定的值.int
OfflinePlayer.getStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType) 获得该玩家的统计信息中跟实体有关的统计项中的某实体(EntityType
)数量.UnsafeValues.getTranslationKey
(EntityType entityType) 已过时。void
OfflinePlayer.incrementStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType) 把该玩家的统计信息中跟实体有关的统计项中的某种实体(EntityType
)的数量+1.void
OfflinePlayer.incrementStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount) 将该玩家的统计信息中的某个跟实体有关的统计项的某实体类型(EntityType
)加上指定的数值.void
OfflinePlayer.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的使用
修饰符和类型方法说明static @Nullable EntityType
EntityType.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 ).限定符构造器说明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的使用
修饰符和类型方法说明ItemFactory.getSpawnEgg
(@NotNull EntityType type) Gets aMaterial
representing the spawn egg for the providedEntityType
. -
org.bukkit.inventory.meta中EntityType的使用
-
org.bukkit.material中EntityType的使用
-
org.bukkit.packs中EntityType的使用
修饰符和类型方法说明boolean
DataPackManager.isEnabledByFeature
(@NotNull EntityType entityType, @NotNull World world) Gets if the EntityType is enabled for use by the Features in World. -
org.bukkit.scoreboard中EntityType的使用
-
org.bukkit.spawner中EntityType的使用
修饰符和类型方法说明void
BaseSpawner.setSpawnedType
(@Nullable EntityType creatureType) Set the spawner's creature type.
Tag.ENTITY_TYPES_DEFLECTS_PROJECTILES