Package net.minecraft.world.waypoint
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$AlphaFadeintermediary net/minecraft/class_11208$class_11209$class_11210official fip$a$anamed nearDistintermediary comp_4040official dnamed farDistintermediary comp_4041official enamed nearAlphaintermediary comp_4042official fnamed farAlphaintermediary comp_4043official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Waypoint.Config.AlphaFade> static final Waypoint.Config.AlphaFadeprivate final floatThe field for thefarAlpharecord component.private final intThe field for thefarDistrecord component.private final floatThe field for thenearAlpharecord component.private final intThe field for thenearDistrecord component.static final PacketCodec<ByteBuf, Waypoint.Config.AlphaFade> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatfarAlpha()Returns the value of thefarAlpharecord component.intfarDist()Returns the value of thefarDistrecord component.floatgetFade(float distance) final inthashCode()Returns a hash code value for this object.floatReturns the value of thenearAlpharecord component.intnearDist()Returns the value of thenearDistrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
nearDist
private final int nearDistThe field for thenearDistrecord component. -
farDist
private final int farDistThe field for thefarDistrecord component. -
nearAlpha
private final float nearAlphaThe field for thenearAlpharecord component. -
farAlpha
private final float farAlphaThe field for thefarAlpharecord component. -
BYTE_TO_FLOAT
- Mappings:
Namespace Name Mixin selector named BYTE_TO_FLOATLnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;BYTE_TO_FLOAT:Ljava/util/function/Function;intermediary field_59795Lnet/minecraft/class_11208$class_11209$class_11210;field_59795:Ljava/util/function/Function;official hLfip$a$a;h:Ljava/util/function/Function;
-
FLOAT_TO_BYTE
- Mappings:
Namespace Name Mixin selector named FLOAT_TO_BYTELnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;FLOAT_TO_BYTE:Ljava/util/function/Function;intermediary field_59796Lnet/minecraft/class_11208$class_11209$class_11210;field_59796:Ljava/util/function/Function;official iLfip$a$a;i:Ljava/util/function/Function;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;CODEC:Lcom/mojang/serialization/Codec;intermediary field_59792Lnet/minecraft/class_11208$class_11209$class_11210;field_59792:Lcom/mojang/serialization/Codec;official aLfip$a$a;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_59793Lnet/minecraft/class_11208$class_11209$class_11210;field_59793:Lnet/minecraft/class_9139;official bLfip$a$a;b:Lzg;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;DEFAULT:Lnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;intermediary field_59794Lnet/minecraft/class_11208$class_11209$class_11210;field_59794:Lnet/minecraft/class_11208$class_11209$class_11210;official cLfip$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 getFadeLnet/minecraft/world/waypoint/Waypoint$Config$AlphaFade;getFade(F)Fintermediary method_70792Lnet/minecraft/class_11208$class_11209$class_11210;method_70792(F)Fofficial aLfip$a$a;a(F)F
-
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. -
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. -
equals
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 '=='. -
nearDist
public int nearDist()Returns the value of thenearDistrecord component.- Returns:
- the value of the
nearDistrecord component
-
farDist
public int farDist()Returns the value of thefarDistrecord component.- Returns:
- the value of the
farDistrecord component
-
nearAlpha
public float nearAlpha()Returns the value of thenearAlpharecord component.- Returns:
- the value of the
nearAlpharecord component
-
farAlpha
public float farAlpha()Returns the value of thefarAlpharecord component.- Returns:
- the value of the
farAlpharecord component
-