Package org.cyclops.cyclopscore.network
Record Class PacketHandler.TargetPoint
java.lang.Object
java.lang.Record
org.cyclops.cyclopscore.network.PacketHandler.TargetPoint
- Enclosing class:
PacketHandler
@Deprecated
public static record PacketHandler.TargetPoint(net.minecraft.server.level.ServerLevel level, double x, double y, double z, double radius, @Nullable net.minecraft.server.level.ServerPlayer excluded)
extends Record
Deprecated.
-
Constructor Summary
ConstructorDescriptionTargetPoint
(net.minecraft.server.level.ServerLevel level, double x, double y, double z, double radius, @Nullable net.minecraft.server.level.ServerPlayer excluded) Deprecated.Creates an instance of aTargetPoint
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Deprecated.Indicates whether some other object is "equal to" this one.@Nullable net.minecraft.server.level.ServerPlayer
excluded()
Deprecated.Returns the value of theexcluded
record component.final int
hashCode()
Deprecated.Returns a hash code value for this object.net.minecraft.server.level.ServerLevel
level()
Deprecated.Returns the value of thelevel
record component.double
radius()
Deprecated.Returns the value of theradius
record component.final String
toString()
Deprecated.Returns a string representation of this record class.double
x()
Deprecated.Returns the value of thex
record component.double
y()
Deprecated.Returns the value of they
record component.double
z()
Deprecated.Returns the value of thez
record component.
-
Constructor Details
-
TargetPoint
public TargetPoint(net.minecraft.server.level.ServerLevel level, double x, double y, double z, double radius, @Nullable @Nullable net.minecraft.server.level.ServerPlayer excluded) Deprecated.Creates an instance of aTargetPoint
record class.- Parameters:
level
- the value for thelevel
record componentx
- the value for thex
record componenty
- the value for they
record componentz
- the value for thez
record componentradius
- the value for theradius
record componentexcluded
- the value for theexcluded
record component
-
-
Method Details
-
toString
Deprecated.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()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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 '=='. -
level
public net.minecraft.server.level.ServerLevel level()Deprecated.Returns the value of thelevel
record component.- Returns:
- the value of the
level
record component
-
x
public double x()Deprecated.Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
public double y()Deprecated.Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
z
public double z()Deprecated.Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
radius
public double radius()Deprecated.Returns the value of theradius
record component.- Returns:
- the value of the
radius
record component
-
excluded
@Nullable public @Nullable net.minecraft.server.level.ServerPlayer excluded()Deprecated.Returns the value of theexcluded
record component.- Returns:
- the value of the
excluded
record component
-