Package net.minecraft.block.spawner
Record Class TrialSpawnerConfig
java.lang.Object
java.lang.Record
net.minecraft.block.spawner.TrialSpawnerConfig
- Record Components:
requiredPlayerRange
-spawnRange
-totalMobs
-simultaneousMobs
-totalMobsAddedPerPlayer
-simultaneousMobsAddedPerPlayer
-ticksBetweenSpawn
-targetCooldownLength
-spawnPotentialsDefinition
-lootTablesToEject
-
public record TrialSpawnerConfig(int requiredPlayerRange, int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, int targetCooldownLength, DataPool<MobSpawnerEntry> spawnPotentialsDefinition, DataPool<Identifier> lootTablesToEject)
extends Record
- Mappings:
Namespace Name official dis
intermediary net/minecraft/class_8965
named net/minecraft/block/spawner/TrialSpawnerConfig
official c
intermediary comp_2102
named requiredPlayerRange
official d
intermediary comp_2103
named spawnRange
official e
intermediary comp_2104
named totalMobs
official f
intermediary comp_2105
named simultaneousMobs
official g
intermediary comp_2106
named totalMobsAddedPerPlayer
official h
intermediary comp_2107
named simultaneousMobsAddedPerPlayer
official i
intermediary comp_2108
named ticksBetweenSpawn
official j
intermediary comp_2109
named targetCooldownLength
official k
intermediary comp_2110
named spawnPotentialsDefinition
official l
intermediary comp_2111
named lootTablesToEject
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec<TrialSpawnerConfig>
static TrialSpawnerConfig
private final DataPool<Identifier>
The field for thelootTablesToEject
record component.private final int
The field for therequiredPlayerRange
record component.private final float
The field for thesimultaneousMobs
record component.private final float
The field for thesimultaneousMobsAddedPerPlayer
record component.private final DataPool<MobSpawnerEntry>
The field for thespawnPotentialsDefinition
record component.private final int
The field for thespawnRange
record component.private final int
The field for thetargetCooldownLength
record component.private final int
The field for theticksBetweenSpawn
record component.private final float
The field for thetotalMobs
record component.private final float
The field for thetotalMobsAddedPerPlayer
record component. -
Constructor Summary
ConstructorDescriptionTrialSpawnerConfig
(int int2, int int3, float float2, float float3, float float4, float float5, int int4, int int5, DataPool<MobSpawnerEntry> dataPool, DataPool<Identifier> dataPool2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
getSimultaneousMobs
(int additionalPlayers) int
getTotalMobs
(int additionalPlayers) final int
hashCode()
Returns a hash code value for this object.Returns the value of thelootTablesToEject
record component.int
Returns the value of therequiredPlayerRange
record component.float
Returns the value of thesimultaneousMobs
record component.float
Returns the value of thesimultaneousMobsAddedPerPlayer
record component.Returns the value of thespawnPotentialsDefinition
record component.int
Returns the value of thespawnRange
record component.int
Returns the value of thetargetCooldownLength
record component.int
Returns the value of theticksBetweenSpawn
record component.final String
toString()
Returns a string representation of this record class.float
Returns the value of thetotalMobs
record component.float
Returns the value of thetotalMobsAddedPerPlayer
record component.
-
Field Details
-
requiredPlayerRange
private final int requiredPlayerRangeThe field for therequiredPlayerRange
record component. -
spawnRange
private final int spawnRangeThe field for thespawnRange
record component. -
totalMobs
private final float totalMobsThe field for thetotalMobs
record component. -
simultaneousMobs
private final float simultaneousMobsThe field for thesimultaneousMobs
record component. -
totalMobsAddedPerPlayer
private final float totalMobsAddedPerPlayerThe field for thetotalMobsAddedPerPlayer
record component. -
simultaneousMobsAddedPerPlayer
private final float simultaneousMobsAddedPerPlayerThe field for thesimultaneousMobsAddedPerPlayer
record component. -
ticksBetweenSpawn
private final int ticksBetweenSpawnThe field for theticksBetweenSpawn
record component. -
targetCooldownLength
private final int targetCooldownLengthThe field for thetargetCooldownLength
record component. -
spawnPotentialsDefinition
The field for thespawnPotentialsDefinition
record component. -
lootTablesToEject
The field for thelootTablesToEject
record component. -
defaultInstance
- Mappings:
Namespace Name Mixin selector official a
Ldis;a:Ldis;
intermediary field_47367
Lnet/minecraft/class_8965;field_47367:Lnet/minecraft/class_8965;
named defaultInstance
Lnet/minecraft/block/spawner/TrialSpawnerConfig;defaultInstance:Lnet/minecraft/block/spawner/TrialSpawnerConfig;
-
codec
- Mappings:
Namespace Name Mixin selector official b
Ldis;b:Lcom/mojang/serialization/MapCodec;
intermediary field_47368
Lnet/minecraft/class_8965;field_47368:Lcom/mojang/serialization/MapCodec;
named codec
Lnet/minecraft/block/spawner/TrialSpawnerConfig;codec:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
TrialSpawnerConfig
public TrialSpawnerConfig(int int2, int int3, float float2, float float3, float float4, float float5, int int4, int int5, DataPool<MobSpawnerEntry> dataPool, DataPool<Identifier> dataPool2)
-
-
Method Details
-
getTotalMobs
public int getTotalMobs(int additionalPlayers) - Mappings:
Namespace Name Mixin selector official a
Ldis;a(I)I
intermediary method_55179
Lnet/minecraft/class_8965;method_55179(I)I
named getTotalMobs
Lnet/minecraft/block/spawner/TrialSpawnerConfig;getTotalMobs(I)I
-
getSimultaneousMobs
public int getSimultaneousMobs(int additionalPlayers) - Mappings:
Namespace Name Mixin selector official b
Ldis;b(I)I
intermediary method_55181
Lnet/minecraft/class_8965;method_55181(I)I
named getSimultaneousMobs
Lnet/minecraft/block/spawner/TrialSpawnerConfig;getSimultaneousMobs(I)I
-
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 '=='. -
requiredPlayerRange
public int requiredPlayerRange()Returns the value of therequiredPlayerRange
record component.- Returns:
- the value of the
requiredPlayerRange
record component
-
spawnRange
public int spawnRange()Returns the value of thespawnRange
record component.- Returns:
- the value of the
spawnRange
record component
-
totalMobs
public float totalMobs()Returns the value of thetotalMobs
record component.- Returns:
- the value of the
totalMobs
record component
-
simultaneousMobs
public float simultaneousMobs()Returns the value of thesimultaneousMobs
record component.- Returns:
- the value of the
simultaneousMobs
record component
-
totalMobsAddedPerPlayer
public float totalMobsAddedPerPlayer()Returns the value of thetotalMobsAddedPerPlayer
record component.- Returns:
- the value of the
totalMobsAddedPerPlayer
record component
-
simultaneousMobsAddedPerPlayer
public float simultaneousMobsAddedPerPlayer()Returns the value of thesimultaneousMobsAddedPerPlayer
record component.- Returns:
- the value of the
simultaneousMobsAddedPerPlayer
record component
-
ticksBetweenSpawn
public int ticksBetweenSpawn()Returns the value of theticksBetweenSpawn
record component.- Returns:
- the value of the
ticksBetweenSpawn
record component
-
targetCooldownLength
public int targetCooldownLength()Returns the value of thetargetCooldownLength
record component.- Returns:
- the value of the
targetCooldownLength
record component
-
spawnPotentialsDefinition
Returns the value of thespawnPotentialsDefinition
record component.- Returns:
- the value of the
spawnPotentialsDefinition
record component
-
lootTablesToEject
Returns the value of thelootTablesToEject
record component.- Returns:
- the value of the
lootTablesToEject
record component
-