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 dwx
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 Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<TrialSpawnerConfig> static final TrialSpawnerConfig
static final com.mojang.serialization.Codec
<RegistryEntry<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 thespawnPotentials
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 TypeMethodDescriptionstatic TrialSpawnerConfig.Builder
builder()
final 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 thespawnPotentials
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. -
spawnPotentials
The field for thespawnPotentials
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
Ldwx;a:Ldwx;
-
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
Ldwx;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
Ldwx;c: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
Ldwx;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
Ldwx;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
Ldwx;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
Ldwx;b()Ldwx$a;
-
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
-
spawnPotentials
Returns the value of thespawnPotentials
record component.- Returns:
- the value of the
spawnPotentials
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
-