Uses of Record Class
net.minecraft.world.level.SpawnData.CustomSpawnRules
-
Uses of SpawnData.CustomSpawnRules in net.minecraft.world.level
Modifier 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.Modifier and TypeMethodDescriptionSpawnData.customSpawnRules()
Returns the value of thecustomSpawnRules
record component.SpawnData.getCustomSpawnRules()
ModifierConstructorDescriptionSpawnData
(CompoundTag entityToSpawn, Optional<SpawnData.CustomSpawnRules> customSpawnRules, Optional<EquipmentTable> equipment) Creates an instance of aSpawnData
record class.