Record Class BattleMineEvent.Group

java.lang.Object
java.lang.Record
net.minecraft.aprilfools.event.BattleMineEvent.Group
Record Components:
types -
useBabyMobs -
count -
spawnStrategy -
Enclosing class:
BattleMineEvent

public static record BattleMineEvent.Group(RegistryEntryList<EntityType<?>> types, boolean useBabyMobs, IntProvider count, BattleMineEvent.SpawnStrategy spawnStrategy) extends Record
Mappings:
Namespace Name
named net/minecraft/aprilfools/event/BattleMineEvent$Group
intermediary net/minecraft/class_11088$class_11090
official fbp$b
named types
intermediary comp_3970
official b
named useBabyMobs
intermediary comp_3971
official c
named count
intermediary comp_3972
official d
named spawnStrategy
intermediary comp_3973
official e
  • Field Details

    • types

      private final RegistryEntryList<EntityType<?>> types
      The field for the types record component.
    • useBabyMobs

      private final boolean useBabyMobs
      The field for the useBabyMobs record component.
    • count

      private final IntProvider count
      The field for the count record component.
    • spawnStrategy

      private final BattleMineEvent.SpawnStrategy spawnStrategy
      The field for the spawnStrategy record component.
    • CODEC

      public static final com.mojang.serialization.Codec<BattleMineEvent.Group> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/aprilfools/event/BattleMineEvent$Group;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_59066 Lnet/minecraft/class_11088$class_11090;field_59066:Lcom/mojang/serialization/Codec;
      official a Lfbp$b;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

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

      public RegistryEntryList<EntityType<?>> types()
      Returns the value of the types record component.
      Returns:
      the value of the types record component
    • useBabyMobs

      public boolean useBabyMobs()
      Returns the value of the useBabyMobs record component.
      Returns:
      the value of the useBabyMobs record component
    • count

      public IntProvider count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component
    • spawnStrategy

      public BattleMineEvent.SpawnStrategy spawnStrategy()
      Returns the value of the spawnStrategy record component.
      Returns:
      the value of the spawnStrategy record component