Record Class FrogVariant

java.lang.Object
java.lang.Record
net.minecraft.entity.passive.FrogVariant
Record Components:
texture -

public record FrogVariant(Identifier texture) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/passive/FrogVariant
intermediary net/minecraft/class_7106
official cih
named texture
intermediary comp_707
official e
  • Field Details

    • texture

      private final Identifier texture
      The field for the texture record component.
    • PACKET_CODEC

      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 a Lcih;a:Lzt;
    • TEMPERATE

      public static final RegistryKey<FrogVariant> TEMPERATE
      Mappings:
      Namespace Name Mixin selector
      named TEMPERATE Lnet/minecraft/entity/passive/FrogVariant;TEMPERATE:Lnet/minecraft/registry/RegistryKey;
      intermediary field_37462 Lnet/minecraft/class_7106;field_37462:Lnet/minecraft/class_5321;
      official b Lcih;b:Laly;
    • WARM

      public static final RegistryKey<FrogVariant> WARM
      Mappings:
      Namespace Name Mixin selector
      named WARM Lnet/minecraft/entity/passive/FrogVariant;WARM:Lnet/minecraft/registry/RegistryKey;
      intermediary field_37463 Lnet/minecraft/class_7106;field_37463:Lnet/minecraft/class_5321;
      official c Lcih;c:Laly;
    • COLD

      public static final RegistryKey<FrogVariant> COLD
      Mappings:
      Namespace Name Mixin selector
      named COLD Lnet/minecraft/entity/passive/FrogVariant;COLD:Lnet/minecraft/registry/RegistryKey;
      intermediary field_37464 Lnet/minecraft/class_7106;field_37464:Lnet/minecraft/class_5321;
      official d Lcih;d:Laly;
  • Constructor Details

    • FrogVariant

      public FrogVariant(Identifier identifier)
  • Method Details

    • of

      private static RegistryKey<FrogVariant> of(String id)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/entity/passive/FrogVariant;of(Ljava/lang/String;)Lnet/minecraft/registry/RegistryKey;
      intermediary method_58368 Lnet/minecraft/class_7106;method_58368(Ljava/lang/String;)Lnet/minecraft/class_5321;
      official a Lcih;a(Ljava/lang/String;)Laly;
    • registerAndGetDefault

      public static FrogVariant registerAndGetDefault(Registry<FrogVariant> registry)
      Mappings:
      Namespace Name Mixin selector
      named registerAndGetDefault Lnet/minecraft/entity/passive/FrogVariant;registerAndGetDefault(Lnet/minecraft/registry/Registry;)Lnet/minecraft/entity/passive/FrogVariant;
      intermediary method_58369 Lnet/minecraft/class_7106;method_58369(Lnet/minecraft/class_2378;)Lnet/minecraft/class_7106;
      official a Lcih;a(Lkd;)Lcih;
    • register

      private static FrogVariant register(Registry<FrogVariant> registry, RegistryKey<FrogVariant> key, String id)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/entity/passive/FrogVariant;register(Lnet/minecraft/registry/Registry;Lnet/minecraft/registry/RegistryKey;Ljava/lang/String;)Lnet/minecraft/entity/passive/FrogVariant;
      intermediary method_43091 Lnet/minecraft/class_7106;method_43091(Lnet/minecraft/class_2378;Lnet/minecraft/class_5321;Ljava/lang/String;)Lnet/minecraft/class_7106;
      official a Lcih;a(Lkd;Laly;Ljava/lang/String;)Lcih;
    • 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.
    • texture

      public Identifier texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component