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 Details

    • requiredPlayerRange

      private final int requiredPlayerRange
      The field for the requiredPlayerRange record component.
    • spawnRange

      private final int spawnRange
      The field for the spawnRange record component.
    • totalMobs

      private final float totalMobs
      The field for the totalMobs record component.
    • simultaneousMobs

      private final float simultaneousMobs
      The field for the simultaneousMobs record component.
    • totalMobsAddedPerPlayer

      private final float totalMobsAddedPerPlayer
      The field for the totalMobsAddedPerPlayer record component.
    • simultaneousMobsAddedPerPlayer

      private final float simultaneousMobsAddedPerPlayer
      The field for the simultaneousMobsAddedPerPlayer record component.
    • ticksBetweenSpawn

      private final int ticksBetweenSpawn
      The field for the ticksBetweenSpawn record component.
    • targetCooldownLength

      private final int targetCooldownLength
      The field for the targetCooldownLength record component.
    • spawnPotentialsDefinition

      private final DataPool<MobSpawnerEntry> spawnPotentialsDefinition
      The field for the spawnPotentialsDefinition record component.
    • lootTablesToEject

      private final DataPool<Identifier> lootTablesToEject
      The field for the lootTablesToEject record component.
    • defaultInstance

      public static TrialSpawnerConfig 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

      public static com.mojang.serialization.MapCodec<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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • requiredPlayerRange

      public int requiredPlayerRange()
      Returns the value of the requiredPlayerRange record component.
      Returns:
      the value of the requiredPlayerRange record component
    • spawnRange

      public int spawnRange()
      Returns the value of the spawnRange record component.
      Returns:
      the value of the spawnRange record component
    • totalMobs

      public float totalMobs()
      Returns the value of the totalMobs record component.
      Returns:
      the value of the totalMobs record component
    • simultaneousMobs

      public float simultaneousMobs()
      Returns the value of the simultaneousMobs record component.
      Returns:
      the value of the simultaneousMobs record component
    • totalMobsAddedPerPlayer

      public float totalMobsAddedPerPlayer()
      Returns the value of the totalMobsAddedPerPlayer record component.
      Returns:
      the value of the totalMobsAddedPerPlayer record component
    • simultaneousMobsAddedPerPlayer

      public float simultaneousMobsAddedPerPlayer()
      Returns the value of the simultaneousMobsAddedPerPlayer record component.
      Returns:
      the value of the simultaneousMobsAddedPerPlayer record component
    • ticksBetweenSpawn

      public int ticksBetweenSpawn()
      Returns the value of the ticksBetweenSpawn record component.
      Returns:
      the value of the ticksBetweenSpawn record component
    • targetCooldownLength

      public int targetCooldownLength()
      Returns the value of the targetCooldownLength record component.
      Returns:
      the value of the targetCooldownLength record component
    • spawnPotentialsDefinition

      public DataPool<MobSpawnerEntry> spawnPotentialsDefinition()
      Returns the value of the spawnPotentialsDefinition record component.
      Returns:
      the value of the spawnPotentialsDefinition record component
    • lootTablesToEject

      public DataPool<Identifier> lootTablesToEject()
      Returns the value of the lootTablesToEject record component.
      Returns:
      the value of the lootTablesToEject record component