Record Class Waypoint.Config.AlphaFade

java.lang.Object
java.lang.Record
net.minecraft.world.waypoint.Waypoint.Config.AlphaFade
Record Components:
nearDist -
farDist -
nearAlpha -
farAlpha -
Enclosing class:
Waypoint.Config

public static record Waypoint.Config.AlphaFade(int nearDist, int farDist, float nearAlpha, float farAlpha) extends Record
Mappings:
Namespace Name
named net/minecraft/world/waypoint/Waypoint$Config$AlphaFade
intermediary net/minecraft/class_11208$class_11209$class_11210
official fip$a$a
named nearDist
intermediary comp_4040
official d
named farDist
intermediary comp_4041
official e
named nearAlpha
intermediary comp_4042
official f
named farAlpha
intermediary comp_4043
official g
  • Field Details

    • nearDist

      private final int nearDist
      The field for the nearDist record component.
    • farDist

      private final int farDist
      The field for the farDist record component.
    • nearAlpha

      private final float nearAlpha
      The field for the nearAlpha record component.
    • farAlpha

      private final float farAlpha
      The field for the farAlpha record component.
    • BYTE_TO_FLOAT

      private static final Function<Byte,Float> BYTE_TO_FLOAT
      Mappings:
      Namespace Name Mixin selector
      named BYTE_TO_FLOAT Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;BYTE_TO_FLOAT:Ljava/util/function/Function;
      intermediary field_59795 Lnet/minecraft/class_11208$class_11209$class_11210;field_59795:Ljava/util/function/Function;
      official h Lfip$a$a;h:Ljava/util/function/Function;
    • FLOAT_TO_BYTE

      private static final Function<Float,Byte> FLOAT_TO_BYTE
      Mappings:
      Namespace Name Mixin selector
      named FLOAT_TO_BYTE Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;FLOAT_TO_BYTE:Ljava/util/function/Function;
      intermediary field_59796 Lnet/minecraft/class_11208$class_11209$class_11210;field_59796:Ljava/util/function/Function;
      official i Lfip$a$a;i:Ljava/util/function/Function;
    • CODEC

      public static final com.mojang.serialization.Codec<Waypoint.Config.AlphaFade> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_59792 Lnet/minecraft/class_11208$class_11209$class_11210;field_59792:Lcom/mojang/serialization/Codec;
      official a Lfip$a$a;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,Waypoint.Config.AlphaFade> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_59793 Lnet/minecraft/class_11208$class_11209$class_11210;field_59793:Lnet/minecraft/class_9139;
      official b Lfip$a$a;b:Lzg;
    • DEFAULT

      public static final Waypoint.Config.AlphaFade DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;DEFAULT:Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;
      intermediary field_59794 Lnet/minecraft/class_11208$class_11209$class_11210;field_59794:Lnet/minecraft/class_11208$class_11209$class_11210;
      official c Lfip$a$a;c:Lfip$a$a;
  • Constructor Details

    • AlphaFade

      public AlphaFade(int int2, int int3, float float2, float float3)
  • Method Details

    • getFade

      public float getFade(float distance)
      Mappings:
      Namespace Name Mixin selector
      named getFade Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;getFade(F)F
      intermediary method_70792 Lnet/minecraft/class_11208$class_11209$class_11210;method_70792(F)F
      official a Lfip$a$a;a(F)F
    • 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.
    • nearDist

      public int nearDist()
      Returns the value of the nearDist record component.
      Returns:
      the value of the nearDist record component
    • farDist

      public int farDist()
      Returns the value of the farDist record component.
      Returns:
      the value of the farDist record component
    • nearAlpha

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

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