Record Class StopTrackPacketWithOwner
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.common.network.packet.StopTrackPacketWithOwner
-
Constructor Summary
ConstructorsConstructorDescriptionStopTrackPacketWithOwner(net.minecraft.resources.Identifier handlerID, UUID owner) Creates an instance of aStopTrackPacketWithOwnerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StopTrackPacketWithOwnerdecode(net.minecraft.network.RegistryFriendlyByteBuf buffer) static voidencode(StopTrackPacketWithOwner packet, net.minecraft.network.RegistryFriendlyByteBuf buffer) final booleanIndicates whether some other object is "equal to" this one.static voidhandle(StopTrackPacketWithOwner packet, net.minecraft.server.level.ServerPlayer player) net.minecraft.resources.IdentifierReturns the value of thehandlerIDrecord component.final inthashCode()Returns a hash code value for this object.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StopTrackPacketWithOwner
Creates an instance of aStopTrackPacketWithOwnerrecord class.- Parameters:
handlerID- the value for thehandlerIDrecord componentowner- the value for theownerrecord component
-
-
Method Details
-
encode
public static void encode(StopTrackPacketWithOwner packet, net.minecraft.network.RegistryFriendlyByteBuf buffer) -
decode
-
handle
public static void handle(StopTrackPacketWithOwner packet, net.minecraft.server.level.ServerPlayer player) -
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). -
handlerID
public net.minecraft.resources.Identifier handlerID()Returns the value of thehandlerIDrecord component.- Returns:
- the value of the
handlerIDrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-