Record Class ColorAnimationsPayloadS2C
java.lang.Object
java.lang.Record
me.emafire003.dev.coloredglowlib.networking.ColorAnimationsPayloadS2C
- All Implemented Interfaces:
net.minecraft.network.packet.CustomPayload
public record ColorAnimationsPayloadS2C(List<CustomColorAnimation> colorAnimations)
extends Record
implements net.minecraft.network.packet.CustomPayload
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.packet.CustomPayload
net.minecraft.network.packet.CustomPayload.CodecFactory<B extends net.minecraft.network.PacketByteBuf>, net.minecraft.network.packet.CustomPayload.Id<T extends net.minecraft.network.packet.CustomPayload>, net.minecraft.network.packet.CustomPayload.Type<B extends net.minecraft.network.PacketByteBuf,T extends net.minecraft.network.packet.CustomPayload> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.packet.CustomPayload.Id<ColorAnimationsPayloadS2C> static final net.minecraft.network.codec.PacketCodec<net.minecraft.network.PacketByteBuf, ColorAnimationsPayloadS2C> -
Constructor Summary
ConstructorsConstructorDescriptionColorAnimationsPayloadS2C(List<CustomColorAnimation> colorAnimations) Creates an instance of aColorAnimationsPayloadS2Crecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorAnimationsrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.packet.CustomPayload.Id<? extends net.minecraft.network.packet.CustomPayload> getId()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
-
PACKET_CODEC
public static final net.minecraft.network.codec.PacketCodec<net.minecraft.network.PacketByteBuf,ColorAnimationsPayloadS2C> PACKET_CODEC
-
-
Constructor Details
-
ColorAnimationsPayloadS2C
Creates an instance of aColorAnimationsPayloadS2Crecord class.- Parameters:
colorAnimations- the value for thecolorAnimationsrecord component
-
-
Method Details
-
getId
public net.minecraft.network.packet.CustomPayload.Id<? extends net.minecraft.network.packet.CustomPayload> getId()- Specified by:
getIdin interfacenet.minecraft.network.packet.CustomPayload
-
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). -
colorAnimations
Returns the value of thecolorAnimationsrecord component.- Returns:
- the value of the
colorAnimationsrecord component
-