Record Class MsgPigmentUpdateAck
java.lang.Object
java.lang.Record
at.petrak.hexcasting.forge.network.MsgPigmentUpdateAck
- All Implemented Interfaces:
at.petrak.hexcasting.common.msgs.IMessage
public record MsgPigmentUpdateAck(at.petrak.hexcasting.api.pigment.FrozenPigment update)
extends Record
implements at.petrak.hexcasting.common.msgs.IMessage
Sent server->client to synchronize the status of the sentinel.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMsgPigmentUpdateAck(at.petrak.hexcasting.api.pigment.FrozenPigment update) Creates an instance of aMsgPigmentUpdateAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MsgPigmentUpdateAckdeserialize(io.netty.buffer.ByteBuf buffer) final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationstatic voidhandle(MsgPigmentUpdateAck self) final inthashCode()Returns a hash code value for this object.voidserialize(net.minecraft.network.FriendlyByteBuf buf) final StringtoString()Returns a string representation of this record class.at.petrak.hexcasting.api.pigment.FrozenPigmentupdate()Returns the value of theupdaterecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface at.petrak.hexcasting.common.msgs.IMessage
toBuf
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
MsgPigmentUpdateAck
public MsgPigmentUpdateAck(at.petrak.hexcasting.api.pigment.FrozenPigment update) Creates an instance of aMsgPigmentUpdateAckrecord class.- Parameters:
update- the value for theupdaterecord component
-
-
Method Details
-
getFabricId
public net.minecraft.resources.ResourceLocation getFabricId()- Specified by:
getFabricIdin interfaceat.petrak.hexcasting.common.msgs.IMessage
-
deserialize
-
serialize
public void serialize(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
serializein interfaceat.petrak.hexcasting.common.msgs.IMessage
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
update
public at.petrak.hexcasting.api.pigment.FrozenPigment update()Returns the value of theupdaterecord component.- Returns:
- the value of the
updaterecord component
-