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
ConstructorsConstructorDescriptionTargetPoint(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 aTargetPointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.Indicates whether some other object is "equal to" this one.@Nullable net.minecraft.server.level.ServerPlayerexcluded()Deprecated.Returns the value of theexcludedrecord component.final inthashCode()Deprecated.Returns a hash code value for this object.net.minecraft.server.level.ServerLevellevel()Deprecated.Returns the value of thelevelrecord component.doubleradius()Deprecated.Returns the value of theradiusrecord component.final StringtoString()Deprecated.Returns a string representation of this record class.doublex()Deprecated.Returns the value of thexrecord component.doubley()Deprecated.Returns the value of theyrecord component.doublez()Deprecated.Returns the value of thezrecord 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 aTargetPointrecord class.- Parameters:
level- the value for thelevelrecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentradius- the value for theradiusrecord componentexcluded- the value for theexcludedrecord 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 thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
x
public double x()Deprecated.Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Deprecated.Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Deprecated.Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
radius
public double radius()Deprecated.Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
excluded
@Nullable public @Nullable net.minecraft.server.level.ServerPlayer excluded()Deprecated.Returns the value of theexcludedrecord component.- Returns:
- the value of the
excludedrecord component
-