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/WaypointStyleAssetintermediary net/minecraft/class_11326official ihanamed nearDistanceintermediary comp_4191official enamed farDistanceintermediary comp_4192official fnamed spritesintermediary comp_4193official gnamed spriteLocationsintermediary comp_4194official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WaypointStyleAsset> static final intstatic final intprivate static final com.mojang.serialization.Codec<Integer> private final intThe field for thefarDistancerecord component.static final Stringprivate final intThe field for thenearDistancerecord component.private final List<Identifier> The field for thespriteLocationsrecord component.private final List<Identifier> The field for thespritesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWaypointStyleAsset(int nearDistance, int farDistance, List<Identifier> sprites) WaypointStyleAsset(int nearDistance, int farDistance, List<Identifier> sprites, List<Identifier> spriteLocations) Creates an instance of aWaypointStyleAssetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefarDistancerecord component.getSpriteForDistance(float distance) final inthashCode()Returns a hash code value for this object.intReturns the value of thenearDistancerecord component.Returns the value of thespriteLocationsrecord component.sprites()Returns the value of thespritesrecord component.final StringtoString()Returns a string representation of this record class.com.mojang.serialization.DataResult<WaypointStyleAsset> validate()
-
Field Details
-
nearDistance
private final int nearDistanceThe field for thenearDistancerecord component. -
farDistance
private final int farDistanceThe field for thefarDistancerecord component. -
sprites
The field for thespritesrecord component. -
spriteLocations
The field for thespriteLocationsrecord component. -
field_62050
- See Also:
- Mappings:
Namespace Name Mixin selector named field_62050Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;field_62050:Ljava/lang/String;intermediary field_62050Lnet/minecraft/class_11326;field_62050:Ljava/lang/String;official aLiha;a:Ljava/lang/String;
-
DEFAULT_NEAR_DISTANCE
public static final int DEFAULT_NEAR_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_NEAR_DISTANCELnet/minecraft/client/resource/waypoint/WaypointStyleAsset;DEFAULT_NEAR_DISTANCE:Iintermediary field_60321Lnet/minecraft/class_11326;field_60321:Iofficial bLiha;b:I
-
DEFAULT_FAR_DISTANCE
public static final int DEFAULT_FAR_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_FAR_DISTANCELnet/minecraft/client/resource/waypoint/WaypointStyleAsset;DEFAULT_FAR_DISTANCE:Iintermediary field_60322Lnet/minecraft/class_11326;field_60322:Iofficial cLiha;c:I
-
DISTANCE_CODEC
- Mappings:
Namespace Name Mixin selector named DISTANCE_CODECLnet/minecraft/client/resource/waypoint/WaypointStyleAsset;DISTANCE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_60324Lnet/minecraft/class_11326;field_60324:Lcom/mojang/serialization/Codec;official iLiha;i:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/resource/waypoint/WaypointStyleAsset;CODEC:Lcom/mojang/serialization/Codec;intermediary field_60323Lnet/minecraft/class_11326;field_60323:Lcom/mojang/serialization/Codec;official dLiha;d:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
WaypointStyleAsset
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/resource/waypoint/WaypointStyleAsset;<init>(IILjava/util/List;)Vintermediary <init>Lnet/minecraft/class_11326;<init>(IILjava/util/List;)Vofficial <init>Liha;<init>(IILjava/util/List;)V
-
WaypointStyleAsset
public WaypointStyleAsset(int nearDistance, int farDistance, List<Identifier> sprites, List<Identifier> spriteLocations) Creates an instance of aWaypointStyleAssetrecord class.- Parameters:
nearDistance- the value for thenearDistancerecord componentfarDistance- the value for thefarDistancerecord componentsprites- the value for thespritesrecord componentspriteLocations- the value for thespriteLocationsrecord component
-
-
Method Details
-
validate
- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/client/resource/waypoint/WaypointStyleAsset;validate()Lcom/mojang/serialization/DataResult;intermediary method_71324Lnet/minecraft/class_11326;method_71324()Lcom/mojang/serialization/DataResult;official aLiha;a()Lcom/mojang/serialization/DataResult;
-
getSpriteForDistance
- Mappings:
Namespace Name Mixin selector named getSpriteForDistanceLnet/minecraft/client/resource/waypoint/WaypointStyleAsset;getSpriteForDistance(F)Lnet/minecraft/util/Identifier;intermediary method_71321Lnet/minecraft/class_11326;method_71321(F)Lnet/minecraft/class_2960;official aLiha;a(F)Lamy;
-
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 thenearDistancerecord component.- Returns:
- the value of the
nearDistancerecord component
-
farDistance
public int farDistance()Returns the value of thefarDistancerecord component.- Returns:
- the value of the
farDistancerecord component
-
sprites
Returns the value of thespritesrecord component.- Returns:
- the value of the
spritesrecord component
-
spriteLocations
Returns the value of thespriteLocationsrecord component.- Returns:
- the value of the
spriteLocationsrecord component
-