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

      private final DataPool<MobSpawnerEntry> spawnPotentials
      The field for the spawnPotentials 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 Ldwx;a:Ldwx;
    • 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_53980 Lnet/minecraft/class_8965;field_53980:Lcom/mojang/serialization/Codec;
      official b Ldwx;b:Lcom/mojang/serialization/Codec;
    • ENTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<TrialSpawnerConfig>> 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

  • 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

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

      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
    • spawnPotentials

      public DataPool<MobSpawnerEntry> spawnPotentials()
      Returns the value of the spawnPotentials record component.
      Returns:
      the value of the spawnPotentials 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