Record Class MsgAltioraUpdateAck
java.lang.Object
java.lang.Record
at.petrak.hexcasting.forge.network.MsgAltioraUpdateAck
- All Implemented Interfaces:
at.petrak.hexcasting.common.msgs.IMessage
public record MsgAltioraUpdateAck(@Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora)
extends Record
implements at.petrak.hexcasting.common.msgs.IMessage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMsgAltioraUpdateAck(@Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora) Creates an instance of aMsgAltioraUpdateAckrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable at.petrak.hexcasting.api.player.AltioraAbilityaltiora()Returns the value of thealtiorarecord component.static MsgAltioraUpdateAckdeserialize(io.netty.buffer.ByteBuf buffer) final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationstatic voidhandle(MsgAltioraUpdateAck 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.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
-
MsgAltioraUpdateAck
public MsgAltioraUpdateAck(@Nullable @Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora) Creates an instance of aMsgAltioraUpdateAckrecord class.- Parameters:
altiora- the value for thealtiorarecord 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). -
altiora
@Nullable public @Nullable at.petrak.hexcasting.api.player.AltioraAbility altiora()Returns the value of thealtiorarecord component.- Returns:
- the value of the
altiorarecord component
-