Record Class FrogVariant

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

public record FrogVariant(AssetInfo assetInfo, SpawnConditionSelectors spawnConditions) extends Record implements VariantSelectorProvider<SpawnContext,SpawnCondition>
Mappings:
Namespace Name
named net/minecraft/entity/passive/FrogVariant
intermediary net/minecraft/class_7106
official clu
named assetInfo
intermediary comp_3569
official e
named spawnConditions
intermediary comp_3570
official f
  • Field Details Link icon

    • assetInfo Link icon

      private final AssetInfo assetInfo
      The field for the assetInfo record component.
    • spawnConditions Link icon

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

      public static final com.mojang.serialization.Codec<FrogVariant> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/passive/FrogVariant;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56276 Lnet/minecraft/class_7106;field_56276:Lcom/mojang/serialization/Codec;
      official a Lclu;a:Lcom/mojang/serialization/Codec;
    • NETWORK_CODEC Link icon

      public static final com.mojang.serialization.Codec<FrogVariant> NETWORK_CODEC
      Mappings:
      Namespace Name Mixin selector
      named NETWORK_CODEC Lnet/minecraft/entity/passive/FrogVariant;NETWORK_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_56277 Lnet/minecraft/class_7106;field_56277:Lcom/mojang/serialization/Codec;
      official b Lclu;b:Lcom/mojang/serialization/Codec;
    • ENTRY_CODEC Link icon

      public static final com.mojang.serialization.Codec<RegistryEntry<FrogVariant>> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_CODEC Lnet/minecraft/entity/passive/FrogVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_55961 Lnet/minecraft/class_7106;field_55961:Lcom/mojang/serialization/Codec;
      official c Lclu;c:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      public static final PacketCodec<RegistryByteBuf,RegistryEntry<FrogVariant>> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/entity/passive/FrogVariant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_51942 Lnet/minecraft/class_7106;field_51942:Lnet/minecraft/class_9139;
      official d Lclu;d:Lze;
  • Constructor Details Link icon

    • FrogVariant Link icon

      private FrogVariant(AssetInfo assetInfo)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/passive/FrogVariant;<init>(Lnet/minecraft/util/AssetInfo;)V
      intermediary <init> Lnet/minecraft/class_7106;<init>(Lnet/minecraft/class_10726;)V
      official <init> Lclu;<init>(Lix;)V
    • FrogVariant Link icon

      public FrogVariant(AssetInfo assetInfo, SpawnConditionSelectors spawnConditionSelectors)
  • Method Details Link icon

    • getSelectors Link icon

      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 Lcul;a()Ljava/util/List;
    • 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.
    • assetInfo Link icon

      public AssetInfo assetInfo()
      Returns the value of the assetInfo record component.
      Returns:
      the value of the assetInfo record component
    • spawnConditions Link icon

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