Record Class StartAmethysmScreenEffect
java.lang.Object
java.lang.Record
com.bleudev.nine_lifes.networking.payloads.StartAmethysmScreenEffect
-
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.codec.PacketCodec<net.minecraft.network.RegistryByteBuf, StartAmethysmScreenEffect> static final net.minecraft.network.packet.CustomPayload.Id<StartAmethysmScreenEffect> -
Constructor Summary
ConstructorsConstructorDescriptionStartAmethysmScreenEffect(@Range(from=20L,to=2147483647L) Integer effect_ticks) Creates an instance of aStartAmethysmScreenEffectrecord class. -
Method Summary
Modifier and TypeMethodDescription@Range(from=20L,to=2147483647L) IntegerReturns the value of theeffect_ticksrecord 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
-
CODEC
public static final net.minecraft.network.codec.PacketCodec<net.minecraft.network.RegistryByteBuf,StartAmethysmScreenEffect> CODEC
-
-
Constructor Details
-
StartAmethysmScreenEffect
Creates an instance of aStartAmethysmScreenEffectrecord class.- Parameters:
effect_ticks- the value for theeffect_ticksrecord 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
-
hashCode
-
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). -
effect_ticks
Returns the value of theeffect_ticksrecord component.- Returns:
- the value of the
effect_ticksrecord component
-