Record Class Coords
java.lang.Object
java.lang.Record
com.chiefminingdad.autoplayer.types.Coords
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.phys.Vec3getPosition(net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource sender) net.minecraft.core.Vec3igetPositioni(net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource sender) final inthashCode()Returns a hash code value for this object.static Coordsparse(com.mojang.brigadier.StringReader reader) final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.z()Returns the value of thezrecord component.
-
Constructor Details
-
Coords
-
-
Method Details
-
getPosition
public net.minecraft.world.phys.Vec3 getPosition(net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource sender) -
getPositioni
public net.minecraft.core.Vec3i getPositioni(net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource sender) -
parse
public static Coords parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-