Package net.minecraft.world.border
Record Class WorldBorder.DistanceFromCamera
java.lang.Object
java.lang.Record
net.minecraft.world.border.WorldBorder.DistanceFromCamera
- Record Components:
direction-distance-
- Enclosing class:
WorldBorder
public static record WorldBorder.DistanceFromCamera(Direction direction, double distance)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/border/WorldBorder$DistanceFromCameraintermediary net/minecraft/class_2784$class_10763official edi$bnamed directionintermediary comp_3671official anamed distanceintermediary comp_3672official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.doubledistance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
DistanceFromCamera
-
-
Method Details
-
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 '=='. -
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
distance
public double distance()Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-