Record Class WaypointStyleAsset
java.lang.Object
java.lang.Record
net.minecraft.client.resource.waypoint.WaypointStyleAsset
- Record Components:
nearDistance
-farDistance
-sprites
-spriteLocations
-
@Environment(CLIENT)
public record WaypointStyleAsset(int nearDistance, int farDistance, List<Identifier> sprites, List<Identifier> spriteLocations)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/resource/waypoint/WaypointStyleAsset
intermediary net/minecraft/class_11326
official hsv
named nearDistance
intermediary comp_4191
official d
named farDistance
intermediary comp_4192
official e
named sprites
intermediary comp_4193
official f
named spriteLocations
intermediary comp_4194
official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<WaypointStyleAsset> static final int
static final int
private static final com.mojang.serialization.Codec
<Integer> private final int
The field for thefarDistance
record component.private final int
The field for thenearDistance
record component.private final List
<Identifier> The field for thespriteLocations
record component.private final List
<Identifier> The field for thesprites
record component. -
Constructor Summary
ConstructorsConstructorDescriptionWaypointStyleAsset
(int nearDistance, int farDistance, List<Identifier> sprites) WaypointStyleAsset
(int int2, int int3, List<Identifier> list, List<Identifier> list2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thefarDistance
record component.getSpriteForDistance
(float distance) final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thenearDistance
record component.Returns the value of thespriteLocations
record component.sprites()
Returns the value of thesprites
record component.final String
toString()
Returns a string representation of this record class.private com.mojang.serialization.DataResult
<WaypointStyleAsset> validate()
-
Field Details
-
nearDistance
private final int nearDistanceThe field for thenearDistance
record component. -
farDistance
private final int farDistanceThe field for thefarDistance
record component. -
sprites
The field for thesprites
record component. -
spriteLocations
The field for thespriteLocations
record component. -
DEFAULT_NEAR_DISTANCE
public static final int DEFAULT_NEAR_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_NEAR_DISTANCE
Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;DEFAULT_NEAR_DISTANCE:I
intermediary field_60321
Lnet/minecraft/class_11326;field_60321:I
official a
Lhsv;a:I
-
DEFAULT_FAR_DISTANCE
public static final int DEFAULT_FAR_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_FAR_DISTANCE
Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;DEFAULT_FAR_DISTANCE:I
intermediary field_60322
Lnet/minecraft/class_11326;field_60322:I
official b
Lhsv;b:I
-
DISTANCE_CODEC
- Mappings:
Namespace Name Mixin selector named DISTANCE_CODEC
Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;DISTANCE_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_60324
Lnet/minecraft/class_11326;field_60324:Lcom/mojang/serialization/Codec;
official h
Lhsv;h:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_60323
Lnet/minecraft/class_11326;field_60323:Lcom/mojang/serialization/Codec;
official c
Lhsv;c:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
WaypointStyleAsset
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;<init>(IILjava/util/List;)V
intermediary <init>
Lnet/minecraft/class_11326;<init>(IILjava/util/List;)V
official <init>
Lhsv;<init>(IILjava/util/List;)V
-
WaypointStyleAsset
-
-
Method Details
-
validate
- Mappings:
Namespace Name Mixin selector named validate
Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;validate()Lcom/mojang/serialization/DataResult;
intermediary method_71324
Lnet/minecraft/class_11326;method_71324()Lcom/mojang/serialization/DataResult;
official e
Lhsv;e()Lcom/mojang/serialization/DataResult;
-
getSpriteForDistance
- Mappings:
Namespace Name Mixin selector named getSpriteForDistance
Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;getSpriteForDistance(F)Lnet/minecraft/util/Identifier;
intermediary method_71321
Lnet/minecraft/class_11326;method_71321(F)Lnet/minecraft/class_2960;
official a
Lhsv;a(F)Lame;
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
nearDistance
public int nearDistance()Returns the value of thenearDistance
record component.- Returns:
- the value of the
nearDistance
record component
-
farDistance
public int farDistance()Returns the value of thefarDistance
record component.- Returns:
- the value of the
farDistance
record component
-
sprites
Returns the value of thesprites
record component.- Returns:
- the value of the
sprites
record component
-
spriteLocations
Returns the value of thespriteLocations
record component.- Returns:
- the value of the
spriteLocations
record component
-