Record Class SpawnConditionSelectors

java.lang.Object
java.lang.Record
net.minecraft.entity.spawn.SpawnConditionSelectors
Record Components:
selectors -

public record SpawnConditionSelectors(List<VariantSelectorProvider.Selector<SpawnContext,SpawnCondition>> selectors) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/spawn/SpawnConditionSelectors
intermediary net/minecraft/class_10702
official cup
named selectors
intermediary comp_3583
official c
  • Field Details Link icon

    • selectors Link icon

      The field for the selectors record component.
    • EMPTY Link icon

      public static final SpawnConditionSelectors EMPTY
      Mappings:
      Namespace Name Mixin selector
      named EMPTY Lnet/minecraft/entity/spawn/SpawnConditionSelectors;EMPTY:Lnet/minecraft/entity/spawn/SpawnConditionSelectors;
      intermediary field_56285 Lnet/minecraft/class_10702;field_56285:Lnet/minecraft/class_10702;
      official a Lcup;a:Lcup;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<SpawnConditionSelectors> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/spawn/SpawnConditionSelectors;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56286 Lnet/minecraft/class_10702;field_56286:Lcom/mojang/serialization/Codec;
      official b Lcup;b:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

  • Method Details Link icon

    • createSingle Link icon

      public static SpawnConditionSelectors createSingle(SpawnCondition condition, int priority)
      Mappings:
      Namespace Name Mixin selector
      named createSingle Lnet/minecraft/entity/spawn/SpawnConditionSelectors;createSingle(Lnet/minecraft/entity/spawn/SpawnCondition;I)Lnet/minecraft/entity/spawn/SpawnConditionSelectors;
      intermediary method_67171 Lnet/minecraft/class_10702;method_67171(Lnet/minecraft/class_10699;I)Lnet/minecraft/class_10702;
      official a Lcup;a(Lcum;I)Lcup;
    • createFallback Link icon

      public static SpawnConditionSelectors createFallback(int priority)
      Mappings:
      Namespace Name Mixin selector
      named createFallback Lnet/minecraft/entity/spawn/SpawnConditionSelectors;createFallback(I)Lnet/minecraft/entity/spawn/SpawnConditionSelectors;
      intermediary method_67170 Lnet/minecraft/class_10702;method_67170(I)Lnet/minecraft/class_10702;
      official a Lcup;a(I)Lcup;
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • selectors Link icon

      Returns the value of the selectors record component.
      Returns:
      the value of the selectors record component