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 drh
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 Details

    • 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.
    • spawnPotentialsDefinition

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

      private final DataPool<RegistryKey<LootTable>> lootTablesToEject
      The field for the lootTablesToEject record component.
    • itemsToDropWhenOminous

      private final RegistryKey<LootTable> itemsToDropWhenOminous
      The field for the itemsToDropWhenOminous record component.
    • DEFAULT

      public static final TrialSpawnerConfig 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 Ldrh;a:Ldrh;
    • CODEC

      public static final com.mojang.serialization.Codec<TrialSpawnerConfig> 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 Ldrh;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • 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 Ldrh;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 Ldrh;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 Ldrh;a()J
    • 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.
    • 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
    • spawnPotentialsDefinition

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

      public DataPool<RegistryKey<LootTable>> lootTablesToEject()
      Returns the value of the lootTablesToEject record component.
      Returns:
      the value of the lootTablesToEject record component
    • itemsToDropWhenOminous

      public RegistryKey<LootTable> itemsToDropWhenOminous()
      Returns the value of the itemsToDropWhenOminous record component.
      Returns:
      the value of the itemsToDropWhenOminous record component