Package net.minecraft

Record Class class_10731

java.lang.Object
java.lang.Record
net.minecraft.class_10731
Record Components:
modelAndTexture -
spawnConditions -
All Implemented Interfaces:
VariantSelectorProvider<SpawnContext,SpawnCondition>

public record class_10731(ModelAndTexture<class_10731.class_10732> modelAndTexture, SpawnConditionSelectors spawnConditions) extends Record implements VariantSelectorProvider<SpawnContext,SpawnCondition>
Mappings:
Namespace Name
named net/minecraft/class_10731
intermediary net/minecraft/class_10731
official cjb
named modelAndTexture
intermediary comp_3632
official e
named spawnConditions
intermediary comp_3633
official f
  • Field Details

    • modelAndTexture

      private final ModelAndTexture<class_10731.class_10732> modelAndTexture
      The field for the modelAndTexture record component.
    • spawnConditions

      private final SpawnConditionSelectors spawnConditions
      The field for the spawnConditions record component.
    • field_56425

      public static final com.mojang.serialization.Codec<class_10731> field_56425
      Mappings:
      Namespace Name Mixin selector
      named field_56425 Lnet/minecraft/class_10731;field_56425:Lcom/mojang/serialization/Codec;
      intermediary field_56425 Lnet/minecraft/class_10731;field_56425:Lcom/mojang/serialization/Codec;
      official a Lcjb;a:Lcom/mojang/serialization/Codec;
    • field_56426

      public static final com.mojang.serialization.Codec<class_10731> field_56426
      Mappings:
      Namespace Name Mixin selector
      named field_56426 Lnet/minecraft/class_10731;field_56426:Lcom/mojang/serialization/Codec;
      intermediary field_56426 Lnet/minecraft/class_10731;field_56426:Lcom/mojang/serialization/Codec;
      official b Lcjb;b:Lcom/mojang/serialization/Codec;
    • field_56427

      public static final com.mojang.serialization.Codec<RegistryEntry<class_10731>> field_56427
      Mappings:
      Namespace Name Mixin selector
      named field_56427 Lnet/minecraft/class_10731;field_56427:Lcom/mojang/serialization/Codec;
      intermediary field_56427 Lnet/minecraft/class_10731;field_56427:Lcom/mojang/serialization/Codec;
      official c Lcjb;c:Lcom/mojang/serialization/Codec;
    • field_56428

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<class_10731>> field_56428
      Mappings:
      Namespace Name Mixin selector
      named field_56428 Lnet/minecraft/class_10731;field_56428:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_56428 Lnet/minecraft/class_10731;field_56428:Lnet/minecraft/class_9139;
      official d Lcjb;d:Lyw;
  • Constructor Details

  • Method Details

    • getSelectors

      Specified by:
      getSelectors in interface VariantSelectorProvider<SpawnContext,SpawnCondition>
      Mappings:
      Namespace Name Mixin selector
      named getSelectors Lnet/minecraft/entity/VariantSelectorProvider;getSelectors()Ljava/util/List;
      intermediary method_67126 Lnet/minecraft/class_10695;method_67126()Ljava/util/List;
      official a Lcta;a()Ljava/util/List;
    • 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. 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.
    • modelAndTexture

      public ModelAndTexture<class_10731.class_10732> modelAndTexture()
      Returns the value of the modelAndTexture record component.
      Returns:
      the value of the modelAndTexture record component
    • spawnConditions

      public SpawnConditionSelectors spawnConditions()
      Returns the value of the spawnConditions record component.
      Returns:
      the value of the spawnConditions record component