接口的使用
org.bukkit.entity.EntitySnapshot
使用EntitySnapshot的程序包
程序包
说明
与怪物生成器有关的类。
为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以存储在
物品堆的额外数据的接口.Classes related to entity spawners.
-
org.bukkit.block.spawner中EntitySnapshot的使用
参数类型为EntitySnapshot的org.bukkit.block.spawner中的方法修饰符和类型方法说明voidSpawnerEntry.setSnapshot(@NotNull EntitySnapshot snapshot) 设置此SpawnerEntry的EntitySnapshot。参数类型为EntitySnapshot的org.bukkit.block.spawner中的构造器限定符构造器说明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 anEntitySnapshotrepresenting the current state of this entity. -
org.bukkit.inventory.meta中EntitySnapshot的使用
修饰符和类型方法说明SpawnEggMeta.getSpawnedEntity()Gets theEntitySnapshotthat will be spawned by this spawn egg or null if no entity has been set.参数类型为EntitySnapshot的org.bukkit.inventory.meta中的方法修饰符和类型方法说明voidSpawnEggMeta.setSpawnedEntity(@NotNull EntitySnapshot snapshot) Sets theEntitySnapshotthat will be spawned by this spawn egg. -
org.bukkit.spawner中EntitySnapshot的使用
修饰符和类型方法说明BaseSpawner.getSpawnedEntity()Gets theEntitySnapshotthat will be spawned by this spawner or null if no entities have been assigned to this spawner.参数类型为EntitySnapshot的org.bukkit.spawner中的方法修饰符和类型方法说明voidBaseSpawner.addPotentialSpawn(@NotNull EntitySnapshot snapshot, int weight, @Nullable SpawnRule spawnRule) Adds a newEntitySnapshotto the list of entities this spawner can spawn.voidBaseSpawner.setSpawnedEntity(@Nullable EntitySnapshot snapshot) Sets the entity that will be spawned by this spawner.