Package net.minecraft

Record Class class_12220

java.lang.Object
java.lang.Record
net.minecraft.class_12220
Record Components:
value -
alpha -

public record class_12220(float value, float alpha) extends Record
Mappings:
Namespace Name
named net/minecraft/class_12220
intermediary net/minecraft/class_12220
official cei
named value
intermediary comp_5142
official b
named alpha
intermediary comp_5143
official c
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the alpha record component.
    private static final com.mojang.serialization.Codec<class_12220>
     
    static final com.mojang.serialization.Codec<class_12220>
     
    private final float
    The field for the value record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    class_12220(float float2)
     
    class_12220(float value, float alpha)
    Creates an instance of a class_12220 record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the alpha record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.
    float
    Returns the value of the value record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • value

      private final float value
      The field for the value record component.
    • alpha

      private final float alpha
      The field for the alpha record component.
    • CODEC

      private static final com.mojang.serialization.Codec<class_12220> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/class_12220;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63806 Lnet/minecraft/class_12220;field_63806:Lcom/mojang/serialization/Codec;
      official d Lcei;d:Lcom/mojang/serialization/Codec;
    • field_63805

      public static final com.mojang.serialization.Codec<class_12220> field_63805
      Mappings:
      Namespace Name Mixin selector
      named field_63805 Lnet/minecraft/class_12220;field_63805:Lcom/mojang/serialization/Codec;
      intermediary field_63805 Lnet/minecraft/class_12220;field_63805:Lcom/mojang/serialization/Codec;
      official a Lcei;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • class_12220

      public class_12220(float float2)
    • class_12220

      public class_12220(float value, float alpha)
      Creates an instance of a class_12220 record class.
      Parameters:
      value - the value for the value record component
      alpha - the value for the alpha record component
  • Method Details

    • 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 '=='.
      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.
    • value

      public float value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component
    • alpha

      public float alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component