接口的使用
org.bukkit.entity.EntitySnapshot
程序包
说明
Classes relevant to mob spawners.
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以存储在
物品堆
的额外数据的接口.Classes related to entity spawners.
-
org.bukkit.block.spawner中EntitySnapshot的使用
修饰符和类型方法说明void
SpawnerEntry.setSnapshot
(@NotNull EntitySnapshot snapshot) Sets theEntitySnapshot
for this SpawnerEntry.限定符构造器说明SpawnerEntry
(@NotNull EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule) SpawnerEntry
(@NotNull EntitySnapshot snapshot, int spawnWeight, @Nullable SpawnRule spawnRule, @Nullable SpawnerEntry.Equipment equipment) -
org.bukkit.entity中EntitySnapshot的使用
修饰符和类型方法说明EntityFactory.createEntitySnapshot
(@NotNull String input) Create a new EntitySnapshot with the supplied input.
Accepts strings in the format output bygetAsString()
.Entity.createSnapshot()
Crates anEntitySnapshot
representing the current state of this entity. -
org.bukkit.inventory.meta中EntitySnapshot的使用
修饰符和类型方法说明SpawnEggMeta.getSpawnedEntity()
Gets theEntitySnapshot
that will be spawned by this spawn egg or null if no entity has been set.修饰符和类型方法说明void
SpawnEggMeta.setSpawnedEntity
(@NotNull EntitySnapshot snapshot) Sets theEntitySnapshot
that will be spawned by this spawn egg. -
org.bukkit.spawner中EntitySnapshot的使用
修饰符和类型方法说明BaseSpawner.getSpawnedEntity()
Gets theEntitySnapshot
that will be spawned by this spawner or null if no entities have been assigned to this spawner.修饰符和类型方法说明void
BaseSpawner.addPotentialSpawn
(@NotNull EntitySnapshot snapshot, int weight, @Nullable SpawnRule spawnRule) Adds a newEntitySnapshot
to the list of entities this spawner can spawn.void
BaseSpawner.setSpawnedEntity
(@Nullable EntitySnapshot snapshot) Sets the entity that will be spawned by this spawner.