Uses of Record Class
net.minecraft.world.level.SpawnData.CustomSpawnRules
Packages that use SpawnData.CustomSpawnRules
-
Uses of SpawnData.CustomSpawnRules in net.minecraft.world.level
Fields in net.minecraft.world.level with type parameters of type SpawnData.CustomSpawnRulesModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnData.CustomSpawnRules>
SpawnData.CustomSpawnRules.CODEC
private final Optional<SpawnData.CustomSpawnRules>
SpawnData.customSpawnRules
The field for thecustomSpawnRules
record component.Methods in net.minecraft.world.level that return types with arguments of type SpawnData.CustomSpawnRulesModifier and TypeMethodDescriptionSpawnData.customSpawnRules()
Returns the value of thecustomSpawnRules
record component.SpawnData.getCustomSpawnRules()
Constructor parameters in net.minecraft.world.level with type arguments of type SpawnData.CustomSpawnRulesModifierConstructorDescriptionSpawnData
(CompoundTag entityToSpawn, Optional<SpawnData.CustomSpawnRules> customSpawnRules) Creates an instance of aSpawnData
record class.