Record Class SpawnSettings.SpawnEntry

java.lang.Object
java.lang.Record
net.minecraft.world.biome.SpawnSettings.SpawnEntry
Record Components:
type -
minGroupSize -
maxGroupSize -
Enclosing class:
SpawnSettings

public static record SpawnSettings.SpawnEntry(EntityType<?> type, int minGroupSize, int maxGroupSize) extends Record
Mappings:
Namespace Name
named net/minecraft/world/biome/SpawnSettings$SpawnEntry
intermediary net/minecraft/class_5483$class_1964
official dly$c
named type
intermediary comp_3488
official b
named minGroupSize
intermediary comp_3489
official c
named maxGroupSize
intermediary comp_3490
official d
  • Field Details Link icon

    • type Link icon

      private final EntityType<?> type
      The field for the type record component.
    • minGroupSize Link icon

      private final int minGroupSize
      The field for the minGroupSize record component.
    • maxGroupSize Link icon

      private final int maxGroupSize
      The field for the maxGroupSize record component.
    • CODEC Link icon

      public static final com.mojang.serialization.MapCodec<SpawnSettings.SpawnEntry> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/biome/SpawnSettings$SpawnEntry;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_24681 Lnet/minecraft/class_5483$class_1964;field_24681:Lcom/mojang/serialization/MapCodec;
      official a Ldly$c;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details Link icon

    • SpawnEntry Link icon

      public SpawnEntry(EntityType<?> type, int int2, int minGroupSize)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/biome/SpawnSettings$SpawnEntry;<init>(Lnet/minecraft/entity/EntityType;II)V
      intermediary <init> Lnet/minecraft/class_5483$class_1964;<init>(Lnet/minecraft/class_1299;II)V
      official <init> Ldly$c;<init>(Lbxn;II)V
  • Method Details Link icon

    • toString Link icon

      public 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.
    • type Link icon

      public EntityType<?> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • minGroupSize Link icon

      public int minGroupSize()
      Returns the value of the minGroupSize record component.
      Returns:
      the value of the minGroupSize record component
    • maxGroupSize Link icon

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