Uses of Record Class
net.minecraft.block.spawner.MobSpawnerEntry
-
Uses of MobSpawnerEntry in net.minecraft.block.spawner
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MobSpawnerEntry> MobSpawnerEntry.CODEC
static final com.mojang.serialization.Codec
<DataPool<MobSpawnerEntry>> MobSpawnerEntry.DATA_POOL_CODEC
protected Optional
<MobSpawnerEntry> TrialSpawnerData.spawnData
private DataPool
<MobSpawnerEntry> MobSpawnerLogic.spawnPotentials
private final DataPool
<MobSpawnerEntry> TrialSpawnerConfig.spawnPotentialsDefinition
The field for thespawnPotentialsDefinition
record component.Modifier and TypeMethodDescriptionprotected MobSpawnerEntry
TrialSpawnerData.getSpawnData
(TrialSpawnerLogic logic, Random random) private MobSpawnerEntry
MobSpawnerLogic.getSpawnEntry
(@Nullable World world, Random random, BlockPos pos) Modifier and TypeMethodDescriptionTrialSpawnerConfig.spawnPotentialsDefinition()
Returns the value of thespawnPotentialsDefinition
record component.Modifier and TypeMethodDescriptionprotected void
MobSpawnerLogic.setSpawnEntry
(@Nullable World world, BlockPos pos, MobSpawnerEntry spawnEntry) ModifierConstructorDescriptionTrialSpawnerConfig
(int int2, float float2, float float3, float float4, float float5, int int3, DataPool<MobSpawnerEntry> dataPool, DataPool<RegistryKey<LootTable>> dataPool2, RegistryKey<LootTable> registryKey) TrialSpawnerData
(Set<UUID> players, Set<UUID> spawnedMobsAlive, long cooldownEnd, long nextMobSpawnsAt, int totalSpawnedMobs, Optional<MobSpawnerEntry> spawnData, Optional<RegistryKey<LootTable>> rewardLootTable)