Record Class ApplyBoostPacket
java.lang.Object
java.lang.Record
dev.cammiescorner.icarus.network.c2s.ApplyBoostPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, ApplyBoostPacket> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static voidhandle(commonnetwork.networking.data.PacketContext<ApplyBoostPacket> ctx) final inthashCode()Returns a hash code value for this object.static voidfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID -
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<net.minecraft.network.protocol.common.custom.CustomPacketPayload> TYPE -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,ApplyBoostPacket> STREAM_CODEC
-
-
Constructor Details
-
ApplyBoostPacket
public ApplyBoostPacket()Creates an instance of aApplyBoostPacketrecord class.
-
-
Method Details
-
sendToServer
public static void sendToServer() -
handle
-
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.
-