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 hsw
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 Details

    • nearDistance

      private final int nearDistance
      The field for the nearDistance record component.
    • farDistance

      private final int farDistance
      The field for the farDistance record component.
    • sprites

      private final List<Identifier> sprites
      The field for the sprites record component.
    • spriteLocations

      private final List<Identifier> spriteLocations
      The field for the spriteLocations 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 Lhsw;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 Lhsw;b:I
    • DISTANCE_CODEC

      private static final com.mojang.serialization.Codec<Integer> 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 Lhsw;h:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<WaypointStyleAsset> 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 Lhsw;c:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • WaypointStyleAsset

      public WaypointStyleAsset(int nearDistance, int farDistance, List<Identifier> sprites)
      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> Lhsw;<init>(IILjava/util/List;)V
    • WaypointStyleAsset

      public WaypointStyleAsset(int int2, int int3, List<Identifier> list, List<Identifier> list2)
  • Method Details

    • validate

      private com.mojang.serialization.DataResult<WaypointStyleAsset> 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 Lhsw;e()Lcom/mojang/serialization/DataResult;
    • getSpriteForDistance

      public Identifier getSpriteForDistance(float distance)
      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 Lhsw;a(F)Lame;
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • nearDistance

      public int nearDistance()
      Returns the value of the nearDistance record component.
      Returns:
      the value of the nearDistance record component
    • farDistance

      public int farDistance()
      Returns the value of the farDistance record component.
      Returns:
      the value of the farDistance record component
    • sprites

      public List<Identifier> sprites()
      Returns the value of the sprites record component.
      Returns:
      the value of the sprites record component
    • spriteLocations

      public List<Identifier> spriteLocations()
      Returns the value of the spriteLocations record component.
      Returns:
      the value of the spriteLocations record component