Record Class MsgColorizerUpdateAck
java.lang.Object
java.lang.Record
at.petrak.hexcasting.forge.network.MsgColorizerUpdateAck
- All Implemented Interfaces:
at.petrak.hexcasting.common.network.IMessage
public record MsgColorizerUpdateAck(at.petrak.hexcasting.api.misc.FrozenColorizer update)
extends Record
implements at.petrak.hexcasting.common.network.IMessage
Sent server->client to synchronize the status of the sentinel.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMsgColorizerUpdateAck(at.petrak.hexcasting.api.misc.FrozenColorizer update) Creates an instance of aMsgColorizerUpdateAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MsgColorizerUpdateAckdeserialize(io.netty.buffer.ByteBuf buffer) final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationstatic voidhandle(MsgColorizerUpdateAck 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.misc.FrozenColorizerupdate()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.network.IMessage
toBuf
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
MsgColorizerUpdateAck
public MsgColorizerUpdateAck(at.petrak.hexcasting.api.misc.FrozenColorizer update) Creates an instance of aMsgColorizerUpdateAckrecord class.- Parameters:
update- the value for theupdaterecord component
-
-
Method Details
-
getFabricId
public net.minecraft.resources.ResourceLocation getFabricId()- Specified by:
getFabricIdin interfaceat.petrak.hexcasting.common.network.IMessage
-
deserialize
-
serialize
public void serialize(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
serializein interfaceat.petrak.hexcasting.common.network.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.misc.FrozenColorizer update()Returns the value of theupdaterecord component.- Returns:
- the value of the
updaterecord component
-