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
-spawnPotentialsDefinition
-lootTablesToEject
-itemsToDropWhenOminous
-
public record TrialSpawnerConfig(int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, DataPool<MobSpawnerEntry> spawnPotentialsDefinition, DataPool<RegistryKey<LootTable>> lootTablesToEject, RegistryKey<LootTable> itemsToDropWhenOminous)
extends Record
- Mappings:
Namespace Name named net/minecraft/block/spawner/TrialSpawnerConfig
intermediary net/minecraft/class_8965
official dsg
named spawnRange
intermediary comp_2103
official c
named totalMobs
intermediary comp_2104
official d
named simultaneousMobs
intermediary comp_2105
official e
named totalMobsAddedPerPlayer
intermediary comp_2106
official f
named simultaneousMobsAddedPerPlayer
intermediary comp_2107
official g
named ticksBetweenSpawn
intermediary comp_2108
official h
named spawnPotentialsDefinition
intermediary comp_2110
official i
named lootTablesToEject
intermediary comp_2111
official j
named itemsToDropWhenOminous
intermediary comp_2552
official k
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<TrialSpawnerConfig> static final TrialSpawnerConfig
private final RegistryKey
<LootTable> The field for theitemsToDropWhenOminous
record component.private final DataPool
<RegistryKey<LootTable>> The field for thelootTablesToEject
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 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, float float2, float float3, float float4, float float5, int int3, DataPool<MobSpawnerEntry> dataPool, DataPool<RegistryKey<LootTable>> dataPool2, RegistryKey<LootTable> registryKey) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
int
getSimultaneousMobs
(int additionalPlayers) int
getTotalMobs
(int additionalPlayers) final int
hashCode()
Returns a hash code value for this object.Returns the value of theitemsToDropWhenOminous
record component.Returns the value of thelootTablesToEject
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 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
-
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. -
spawnPotentialsDefinition
The field for thespawnPotentialsDefinition
record component. -
lootTablesToEject
The field for thelootTablesToEject
record component. -
itemsToDropWhenOminous
The field for theitemsToDropWhenOminous
record 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
Ldsg;a:Ldsg;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/spawner/TrialSpawnerConfig;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_47368
Lnet/minecraft/class_8965;field_47368:Lcom/mojang/serialization/Codec;
official b
Ldsg;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TrialSpawnerConfig
public 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
-
getTotalMobs
public 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
Ldsg;a(I)I
-
getSimultaneousMobs
public 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
Ldsg;b(I)I
-
getCooldownLength
public 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
Ldsg;a()J
-
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 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
-
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
-
itemsToDropWhenOminous
Returns the value of theitemsToDropWhenOminous
record component.- Returns:
- the value of the
itemsToDropWhenOminous
record component
-