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 dwb
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 Link icon

    • spawnRange Link icon

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

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

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

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

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

      private final int ticksBetweenSpawn
      The field for the ticksBetweenSpawn record component.
    • spawnPotentials Link icon

      private final DataPool<MobSpawnerEntry> spawnPotentials
      The field for the spawnPotentials record component.
    • lootTablesToEject Link icon

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

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

      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 Ldwb;a:Ldwb;
    • CODEC Link icon

      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 Ldwb;b:Lcom/mojang/serialization/Codec;
    • ENTRY_CODEC Link icon

      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 Ldwb;c:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

  • Method Details Link icon

    • getTotalMobs Link icon

      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 Ldwb;a(I)I
    • getSimultaneousMobs Link icon

      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 Ldwb;b(I)I
    • getCooldownLength Link icon

      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 Ldwb;a()J
    • builder Link icon

      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 Ldwb;b()Ldwb$a;
    • withSpawnPotential Link icon

      public TrialSpawnerConfig withSpawnPotential(EntityType<?> entityType)
      Mappings:
      Namespace Name Mixin selector
      named withSpawnPotential Lnet/minecraft/block/spawner/TrialSpawnerConfig;withSpawnPotential(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/block/spawner/TrialSpawnerConfig;
      intermediary method_65373 Lnet/minecraft/class_8965;method_65373(Lnet/minecraft/class_1299;)Lnet/minecraft/class_8965;
      official a Ldwb;a(Lbut;)Ldwb;
    • toString Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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

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

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

      public int ticksBetweenSpawn()
      Returns the value of the ticksBetweenSpawn record component.
      Returns:
      the value of the ticksBetweenSpawn record component
    • spawnPotentials Link icon

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

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

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