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, Pool<MobSpawnerEntry> spawnPotentials, Pool<RegistryKey<LootTable>> lootTablesToEject, RegistryKey<LootTable> itemsToDropWhenOminous)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/spawner/TrialSpawnerConfigintermediary net/minecraft/class_8965official easnamed spawnRangeintermediary comp_2103official dnamed totalMobsintermediary comp_2104official enamed simultaneousMobsintermediary comp_2105official fnamed totalMobsAddedPerPlayerintermediary comp_2106official gnamed simultaneousMobsAddedPerPlayerintermediary comp_2107official hnamed ticksBetweenSpawnintermediary comp_2108official inamed spawnPotentialsintermediary comp_2110official jnamed lootTablesToEjectintermediary comp_2111official knamed itemsToDropWhenOminousintermediary comp_2552official l
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier 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 Pool<RegistryKey<LootTable>> The field for thelootTablesToEjectrecord component.private final floatThe field for thesimultaneousMobsrecord component.private final floatThe field for thesimultaneousMobsAddedPerPlayerrecord component.private final Pool<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 Summary
ConstructorsConstructorDescriptionTrialSpawnerConfig(int int2, float float2, float float3, float float4, float float5, int int3, Pool<MobSpawnerEntry> pool, Pool<RegistryKey<LootTable>> pool2, RegistryKey<LootTable> registryKey) -
Method Summary
Modifier 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
-
spawnRange
private final int spawnRangeThe field for thespawnRangerecord component. -
totalMobs
private final float totalMobsThe field for thetotalMobsrecord component. -
simultaneousMobs
private final float simultaneousMobsThe field for thesimultaneousMobsrecord component. -
totalMobsAddedPerPlayer
private final float totalMobsAddedPerPlayerThe field for thetotalMobsAddedPerPlayerrecord component. -
simultaneousMobsAddedPerPlayer
private final float simultaneousMobsAddedPerPlayerThe field for thesimultaneousMobsAddedPerPlayerrecord component. -
ticksBetweenSpawn
private final int ticksBetweenSpawnThe field for theticksBetweenSpawnrecord component. -
spawnPotentials
The field for thespawnPotentialsrecord component. -
lootTablesToEject
The field for thelootTablesToEjectrecord component. -
itemsToDropWhenOminous
The field for theitemsToDropWhenOminousrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/block/spawner/TrialSpawnerConfig;DEFAULT:Lnet/minecraft/block/spawner/TrialSpawnerConfig;intermediary field_47367Lnet/minecraft/class_8965;field_47367:Lnet/minecraft/class_8965;official aLeas;a:Leas;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/spawner/TrialSpawnerConfig;CODEC:Lcom/mojang/serialization/Codec;intermediary field_53980Lnet/minecraft/class_8965;field_53980:Lcom/mojang/serialization/Codec;official bLeas;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/block/spawner/TrialSpawnerConfig;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_47368Lnet/minecraft/class_8965;field_47368:Lcom/mojang/serialization/Codec;official cLeas;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TrialSpawnerConfig
public TrialSpawnerConfig(int int2, float float2, float float3, float float4, float float5, int int3, Pool<MobSpawnerEntry> pool, Pool<RegistryKey<LootTable>> pool2, RegistryKey<LootTable> registryKey)
-
-
Method Details
-
getTotalMobs
public int getTotalMobs(int additionalPlayers) - Mappings:
Namespace Name Mixin selector named getTotalMobsLnet/minecraft/block/spawner/TrialSpawnerConfig;getTotalMobs(I)Iintermediary method_55179Lnet/minecraft/class_8965;method_55179(I)Iofficial aLeas;a(I)I
-
getSimultaneousMobs
public int getSimultaneousMobs(int additionalPlayers) - Mappings:
Namespace Name Mixin selector named getSimultaneousMobsLnet/minecraft/block/spawner/TrialSpawnerConfig;getSimultaneousMobs(I)Iintermediary method_55181Lnet/minecraft/class_8965;method_55181(I)Iofficial bLeas;b(I)I
-
getCooldownLength
public long getCooldownLength()- Mappings:
Namespace Name Mixin selector named getCooldownLengthLnet/minecraft/block/spawner/TrialSpawnerConfig;getCooldownLength()Jintermediary method_58712Lnet/minecraft/class_8965;method_58712()Jofficial aLeas;a()J
-
builder
- Mappings:
Namespace Name Mixin selector named builderLnet/minecraft/block/spawner/TrialSpawnerConfig;builder()Lnet/minecraft/block/spawner/TrialSpawnerConfig$Builder;intermediary method_63466Lnet/minecraft/class_8965;method_63466()Lnet/minecraft/class_8965$class_10165;official bLeas;b()Leas$a;
-
withSpawnPotential
- Mappings:
Namespace Name Mixin selector named withSpawnPotentialLnet/minecraft/block/spawner/TrialSpawnerConfig;withSpawnPotential(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/block/spawner/TrialSpawnerConfig;intermediary method_65373Lnet/minecraft/class_8965;method_65373(Lnet/minecraft/class_1299;)Lnet/minecraft/class_8965;official aLeas;a(Lbxn;)Leas;
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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 '=='. -
spawnRange
public int spawnRange()Returns the value of thespawnRangerecord component.- Returns:
- the value of the
spawnRangerecord component
-
totalMobs
public float totalMobs()Returns the value of thetotalMobsrecord component.- Returns:
- the value of the
totalMobsrecord component
-
simultaneousMobs
public float simultaneousMobs()Returns the value of thesimultaneousMobsrecord component.- Returns:
- the value of the
simultaneousMobsrecord component
-
totalMobsAddedPerPlayer
public float totalMobsAddedPerPlayer()Returns the value of thetotalMobsAddedPerPlayerrecord component.- Returns:
- the value of the
totalMobsAddedPerPlayerrecord component
-
simultaneousMobsAddedPerPlayer
public float simultaneousMobsAddedPerPlayer()Returns the value of thesimultaneousMobsAddedPerPlayerrecord component.- Returns:
- the value of the
simultaneousMobsAddedPerPlayerrecord component
-
ticksBetweenSpawn
public int ticksBetweenSpawn()Returns the value of theticksBetweenSpawnrecord component.- Returns:
- the value of the
ticksBetweenSpawnrecord component
-
spawnPotentials
Returns the value of thespawnPotentialsrecord component.- Returns:
- the value of the
spawnPotentialsrecord component
-
lootTablesToEject
Returns the value of thelootTablesToEjectrecord component.- Returns:
- the value of the
lootTablesToEjectrecord component
-
itemsToDropWhenOminous
Returns the value of theitemsToDropWhenOminousrecord component.- Returns:
- the value of the
itemsToDropWhenOminousrecord component
-