net.minecraft.world.level

public record SpawnData

dic
net.minecraft.world.level.SpawnData
net.minecraft.class_1952
net.minecraft.block.spawner.MobSpawnerEntry
net.minecraft.world.level.MobSpawnerData

Field summary

Modifier and TypeField
private final CompoundTag
d
entityToSpawn
comp_64
entity
private final Optional<SpawnData$CustomSpawnRules>
e
customSpawnRules
comp_65
customSpawnRules
private final Optional<EquipmentTable>
f
equipment
comp_2648
equipment
public static final String
a
ENTITY_TAG
field_40893
ENTITY_KEY
public static final com.mojang.serialization.Codec<SpawnData>
b
CODEC
field_34460
CODEC
public static final com.mojang.serialization.Codec<SimpleWeightedRandomList<SpawnData>>
c
LIST_CODEC
field_34461
DATA_POOL_CODEC

Constructor summary

ModifierConstructor
public ()
public (CompoundTag arg0, Optional<SpawnData$CustomSpawnRules> arg1, Optional<EquipmentTable> arg2)

Method summary

Modifier and TypeMethod
public CompoundTag
a()
getEntityToSpawn()
method_38093()
getNbt()
public Optional<SpawnData$CustomSpawnRules>
b()
getCustomSpawnRules()
method_38097()
getCustomSpawnRules()
public Optional<EquipmentTable>
c()
getEquipment()
method_59717()
getEquipment()
public CompoundTag
d()
entityToSpawn()
comp_64()
entity()
public Optional<SpawnData$CustomSpawnRules>
e()
customSpawnRules()
comp_65()
customSpawnRules()
public Optional<EquipmentTable>
f()
equipment()
comp_2648()
equipment()