类的使用
net.minecraft.entity.SpawnReason
-
使用SpawnReason的程序包 程序包 说明 net.minecraft.entity net.minecraft.entity.mob net.minecraft.entity.passive net.minecraft.entity.raid -
-
net.minecraft.entity中SpawnReason的使用
返回SpawnReason的net.minecraft.entity中的方法 修饰符和类型 方法 说明 static SpawnReasonSpawnReason. valueOf(String name)返回带有指定名称的该类型的枚举常量。static SpawnReason[]SpawnReason. values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。参数类型为SpawnReason的net.minecraft.entity中的方法 修饰符和类型 方法 说明 static <T extends Entity>
booleanSpawnRestriction. canSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)TEntityType. create(ServerWorld world, @Nullable CompoundTag itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)TEntityType. spawn(ServerWorld world, @Nullable CompoundTag itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)@Nullable EntityEntityType. spawnFromItemStack(ServerWorld world, @Nullable ItemStack stack, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY)booleanSpawnRestriction.SpawnPredicate. test(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) -
net.minecraft.entity.mob中SpawnReason的使用
-
net.minecraft.entity.passive中SpawnReason的使用
-
net.minecraft.entity.raid中SpawnReason的使用
参数类型为SpawnReason的net.minecraft.entity.raid中的方法 修饰符和类型 方法 说明 @Nullable EntityDataRaiderEntity. initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable CompoundTag entityNbt)
-