Package net.minecraft.block.spawner
Record Class TrialSpawnerConfig
java.lang.Object
java.lang.Record
net.minecraft.block.spawner.TrialSpawnerConfig
- Record Components:
- spawnRange-
- totalMobs-
- simultaneousMobs-
- totalMobsAddedPerPlayer-
- simultaneousMobsAddedPerPlayer-
- ticksBetweenSpawn-
- spawnPotentials-
- lootTablesToEject-
- itemsToDropWhenOminous-
public record TrialSpawnerConfig(int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, DataPool<MobSpawnerEntry> spawnPotentials, DataPool<RegistryKey<LootTable>> lootTablesToEject, RegistryKey<LootTable> itemsToDropWhenOminous)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/block/spawner/TrialSpawnerConfig- intermediary - net/minecraft/class_8965- official - dwb- named - spawnRange- intermediary - comp_2103- official - d- named - totalMobs- intermediary - comp_2104- official - e- named - simultaneousMobs- intermediary - comp_2105- official - f- named - totalMobsAddedPerPlayer- intermediary - comp_2106- official - g- named - simultaneousMobsAddedPerPlayer- intermediary - comp_2107- official - h- named - ticksBetweenSpawn- intermediary - comp_2108- official - i- named - spawnPotentials- intermediary - comp_2110- official - j- named - lootTablesToEject- intermediary - comp_2111- official - k- named - itemsToDropWhenOminous- intermediary - comp_2552- official - l
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<TrialSpawnerConfig> static final TrialSpawnerConfigstatic final com.mojang.serialization.Codec<RegistryEntry<TrialSpawnerConfig>> private final RegistryKey<LootTable> The field for theitemsToDropWhenOminousrecord component.private final DataPool<RegistryKey<LootTable>> The field for thelootTablesToEjectrecord component.private final floatThe field for thesimultaneousMobsrecord component.private final floatThe field for thesimultaneousMobsAddedPerPlayerrecord component.private final DataPool<MobSpawnerEntry> The field for thespawnPotentialsrecord component.private final intThe field for thespawnRangerecord component.private final intThe field for theticksBetweenSpawnrecord component.private final floatThe field for thetotalMobsrecord component.private final floatThe field for thetotalMobsAddedPerPlayerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionTrialSpawnerConfig(int int2, float float2, float float3, float float4, float float5, int int3, DataPool<MobSpawnerEntry> dataPool, DataPool<RegistryKey<LootTable>> dataPool2, RegistryKey<LootTable> registryKey) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic TrialSpawnerConfig.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.longintgetSimultaneousMobs(int additionalPlayers) intgetTotalMobs(int additionalPlayers) final inthashCode()Returns a hash code value for this object.Returns the value of theitemsToDropWhenOminousrecord component.Returns the value of thelootTablesToEjectrecord component.floatReturns the value of thesimultaneousMobsrecord component.floatReturns the value of thesimultaneousMobsAddedPerPlayerrecord component.Returns the value of thespawnPotentialsrecord component.intReturns the value of thespawnRangerecord component.intReturns the value of theticksBetweenSpawnrecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of thetotalMobsrecord component.floatReturns the value of thetotalMobsAddedPerPlayerrecord component.withSpawnPotential(EntityType<?> entityType) 
- 
Field Details- 
spawnRangeprivate final int spawnRangeThe field for thespawnRangerecord component.
- 
totalMobsprivate final float totalMobsThe field for thetotalMobsrecord component.
- 
simultaneousMobsprivate final float simultaneousMobsThe field for thesimultaneousMobsrecord component.
- 
totalMobsAddedPerPlayerprivate final float totalMobsAddedPerPlayerThe field for thetotalMobsAddedPerPlayerrecord component.
- 
simultaneousMobsAddedPerPlayerprivate final float simultaneousMobsAddedPerPlayerThe field for thesimultaneousMobsAddedPerPlayerrecord component.
- 
ticksBetweenSpawnprivate final int ticksBetweenSpawnThe field for theticksBetweenSpawnrecord component.
- 
spawnPotentialsThe field for thespawnPotentialsrecord component.
- 
lootTablesToEjectThe field for thelootTablesToEjectrecord component.
- 
itemsToDropWhenOminousThe field for theitemsToDropWhenOminousrecord component.
- 
DEFAULT- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT- Lnet/minecraft/block/spawner/TrialSpawnerConfig;DEFAULT:Lnet/minecraft/block/spawner/TrialSpawnerConfig;- intermediary - field_47367- Lnet/minecraft/class_8965;field_47367:Lnet/minecraft/class_8965;- official - a- Ldwb;a:Ldwb;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/spawner/TrialSpawnerConfig;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_53980- Lnet/minecraft/class_8965;field_53980:Lcom/mojang/serialization/Codec;- official - b- Ldwb;b:Lcom/mojang/serialization/Codec;
 
- 
ENTRY_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - ENTRY_CODEC- Lnet/minecraft/block/spawner/TrialSpawnerConfig;ENTRY_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_47368- Lnet/minecraft/class_8965;field_47368:Lcom/mojang/serialization/Codec;- official - c- Ldwb;c:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
TrialSpawnerConfigpublic TrialSpawnerConfig(int int2, float float2, float float3, float float4, float float5, int int3, DataPool<MobSpawnerEntry> dataPool, DataPool<RegistryKey<LootTable>> dataPool2, RegistryKey<LootTable> registryKey) 
 
- 
- 
Method Details- 
getTotalMobspublic int getTotalMobs(int additionalPlayers) - Mappings:
- Namespace - Name - Mixin selector - named - getTotalMobs- Lnet/minecraft/block/spawner/TrialSpawnerConfig;getTotalMobs(I)I- intermediary - method_55179- Lnet/minecraft/class_8965;method_55179(I)I- official - a- Ldwb;a(I)I
 
- 
getSimultaneousMobspublic int getSimultaneousMobs(int additionalPlayers) - Mappings:
- Namespace - Name - Mixin selector - named - getSimultaneousMobs- Lnet/minecraft/block/spawner/TrialSpawnerConfig;getSimultaneousMobs(I)I- intermediary - method_55181- Lnet/minecraft/class_8965;method_55181(I)I- official - b- Ldwb;b(I)I
 
- 
getCooldownLengthpublic long getCooldownLength()- Mappings:
- Namespace - Name - Mixin selector - named - getCooldownLength- Lnet/minecraft/block/spawner/TrialSpawnerConfig;getCooldownLength()J- intermediary - method_58712- Lnet/minecraft/class_8965;method_58712()J- official - a- Ldwb;a()J
 
- 
builder- Mappings:
- Namespace - Name - Mixin selector - named - builder- Lnet/minecraft/block/spawner/TrialSpawnerConfig;builder()Lnet/minecraft/block/spawner/TrialSpawnerConfig$Builder;- intermediary - method_63466- Lnet/minecraft/class_8965;method_63466()Lnet/minecraft/class_8965$class_10165;- official - b- Ldwb;b()Ldwb$a;
 
- 
withSpawnPotential- Mappings:
- Namespace - Name - Mixin selector - named - withSpawnPotential- Lnet/minecraft/block/spawner/TrialSpawnerConfig;withSpawnPotential(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/block/spawner/TrialSpawnerConfig;- intermediary - method_65373- Lnet/minecraft/class_8965;method_65373(Lnet/minecraft/class_1299;)Lnet/minecraft/class_8965;- official - a- Ldwb;a(Lbut;)Ldwb;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
spawnRangepublic int spawnRange()Returns the value of thespawnRangerecord component.- Returns:
- the value of the spawnRangerecord component
 
- 
totalMobspublic float totalMobs()Returns the value of thetotalMobsrecord component.- Returns:
- the value of the totalMobsrecord component
 
- 
simultaneousMobspublic float simultaneousMobs()Returns the value of thesimultaneousMobsrecord component.- Returns:
- the value of the simultaneousMobsrecord component
 
- 
totalMobsAddedPerPlayerpublic float totalMobsAddedPerPlayer()Returns the value of thetotalMobsAddedPerPlayerrecord component.- Returns:
- the value of the totalMobsAddedPerPlayerrecord component
 
- 
simultaneousMobsAddedPerPlayerpublic float simultaneousMobsAddedPerPlayer()Returns the value of thesimultaneousMobsAddedPerPlayerrecord component.- Returns:
- the value of the simultaneousMobsAddedPerPlayerrecord component
 
- 
ticksBetweenSpawnpublic int ticksBetweenSpawn()Returns the value of theticksBetweenSpawnrecord component.- Returns:
- the value of the ticksBetweenSpawnrecord component
 
- 
spawnPotentialsReturns the value of thespawnPotentialsrecord component.- Returns:
- the value of the spawnPotentialsrecord component
 
- 
lootTablesToEjectReturns the value of thelootTablesToEjectrecord component.- Returns:
- the value of the lootTablesToEjectrecord component
 
- 
itemsToDropWhenOminousReturns the value of theitemsToDropWhenOminousrecord component.- Returns:
- the value of the itemsToDropWhenOminousrecord component
 
 
-