Record Class TrialSpawnerLogic.FullConfig

java.lang.Object
java.lang.Record
net.minecraft.block.spawner.TrialSpawnerLogic.FullConfig
Record Components:
normal -
ominous -
targetCooldownLength -
requiredPlayerRange -
Enclosing class:
TrialSpawnerLogic

public static record TrialSpawnerLogic.FullConfig(RegistryEntry<TrialSpawnerConfig> normal, RegistryEntry<TrialSpawnerConfig> ominous, int targetCooldownLength, int requiredPlayerRange) extends Record
Mappings:
Namespace Name
named net/minecraft/block/spawner/TrialSpawnerLogic$FullConfig
intermediary net/minecraft/class_8963$class_11349
official edc$b
named normal
intermediary comp_4231
official c
named ominous
intermediary comp_4232
official d
named targetCooldownLength
intermediary comp_4233
official e
named requiredPlayerRange
intermediary comp_4234
official f
  • Field Details

    • normal

      private final RegistryEntry<TrialSpawnerConfig> normal
      The field for the normal record component.
    • ominous

      private final RegistryEntry<TrialSpawnerConfig> ominous
      The field for the ominous record component.
    • targetCooldownLength

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

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

      public static final com.mojang.serialization.MapCodec<TrialSpawnerLogic.FullConfig> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60374 Lnet/minecraft/class_8963$class_11349;field_60374:Lcom/mojang/serialization/MapCodec;
      official a Ledc$b;a:Lcom/mojang/serialization/MapCodec;
    • DEFAULT

      public static final TrialSpawnerLogic.FullConfig DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;DEFAULT:Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;
      intermediary field_60375 Lnet/minecraft/class_8963$class_11349;field_60375:Lnet/minecraft/class_8963$class_11349;
      official b Ledc$b;b:Ledc$b;
  • Constructor Details

  • Method Details

    • withEntityType

      public TrialSpawnerLogic.FullConfig withEntityType(EntityType<?> entityType)
      Mappings:
      Namespace Name Mixin selector
      named withEntityType Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;withEntityType(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/block/spawner/TrialSpawnerLogic$FullConfig;
      intermediary method_71407 Lnet/minecraft/class_8963$class_11349;method_71407(Lnet/minecraft/class_1299;)Lnet/minecraft/class_8963$class_11349;
      official a Ledc$b;a(Lbzv;)Ledc$b;
    • 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.
    • normal

      Returns the value of the normal record component.
      Returns:
      the value of the normal record component
    • ominous

      public RegistryEntry<TrialSpawnerConfig> ominous()
      Returns the value of the ominous record component.
      Returns:
      the value of the ominous record component
    • targetCooldownLength

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

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