Record Class ChickenVariant

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

public record ChickenVariant(ModelAndTexture<ChickenVariant.Model> modelAndTexture, SpawnConditionSelectors spawnConditions) extends Record implements VariantSelectorProvider<SpawnContext,SpawnCondition>
Mappings:
Namespace Name
named net/minecraft/entity/passive/ChickenVariant
intermediary net/minecraft/class_10756
official cmk
named modelAndTexture
intermediary comp_3669
official e
named spawnConditions
intermediary comp_3670
official f
  • Field Details

    • modelAndTexture

      private final ModelAndTexture<ChickenVariant.Model> modelAndTexture
      The field for the modelAndTexture record component.
    • spawnConditions

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

      public static final com.mojang.serialization.Codec<ChickenVariant> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/ChickenVariant;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56538 Lnet/minecraft/class_10756;field_56538:Lcom/mojang/serialization/Codec;
      official a Lcmk;a:Lcom/mojang/serialization/Codec;
    • NETWORK_CODEC

      public static final com.mojang.serialization.Codec<ChickenVariant> NETWORK_CODEC
      Mappings:
      Namespace Name Mixin selector
      named NETWORK_CODEC Lnet/minecraft/entity/passive/ChickenVariant;NETWORK_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56539 Lnet/minecraft/class_10756;field_56539:Lcom/mojang/serialization/Codec;
      official b Lcmk;b:Lcom/mojang/serialization/Codec;
    • ENTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<ChickenVariant>> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_CODEC Lnet/minecraft/entity/passive/ChickenVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56540 Lnet/minecraft/class_10756;field_56540:Lcom/mojang/serialization/Codec;
      official c Lcmk;c:Lcom/mojang/serialization/Codec;
    • ENTRY_PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<ChickenVariant>> ENTRY_PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_PACKET_CODEC Lnet/minecraft/entity/passive/ChickenVariant;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_56541 Lnet/minecraft/class_10756;field_56541:Lnet/minecraft/class_9139;
      official d Lcmk;d:Lzm;
  • Constructor Details

    • ChickenVariant

      private ChickenVariant(ModelAndTexture<ChickenVariant.Model> modelAndTexture)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/ChickenVariant;<init>(Lnet/minecraft/util/ModelAndTexture;)V
      intermediary <init> Lnet/minecraft/class_10756;<init>(Lnet/minecraft/class_10693;)V
      official <init> Lcmk;<init>(Lcwu;)V
    • ChickenVariant

      public ChickenVariant(ModelAndTexture<ChickenVariant.Model> modelAndTexture, SpawnConditionSelectors spawnConditionSelectors)
  • 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 Lcww;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<ChickenVariant.Model> 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