Package at.petrak.paucal.common.msg
Record Class MsgReloadContributorsS2C
java.lang.Object
java.lang.Record
at.petrak.paucal.common.msg.MsgReloadContributorsS2C
- All Implemented Interfaces:
PaucalMessage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aMsgReloadContributorsS2Crecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MsgReloadContributorsS2Cdeserialize(net.minecraft.network.FriendlyByteBuf buf) final booleanIndicates whether some other object is "equal to" this one.net.minecraft.resources.ResourceLocationForge auto-assigns incrementing integers, Fabric requires us to declare an ID These are sent using vanilla's custom plugin channel system and thus are written to every single packet.static voidfinal 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.paucal.api.msg.PaucalMessage
toBuf
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
MsgReloadContributorsS2C
public MsgReloadContributorsS2C()Creates an instance of aMsgReloadContributorsS2Crecord class.
-
-
Method Details
-
serialize
public void serialize(net.minecraft.network.FriendlyByteBuf buf) - Specified by:
serializein interfacePaucalMessage
-
getFabricId
public net.minecraft.resources.ResourceLocation getFabricId()Description copied from interface:PaucalMessageForge auto-assigns incrementing integers, Fabric requires us to declare an ID These are sent using vanilla's custom plugin channel system and thus are written to every single packet. So this ID tends to be more terse.- Specified by:
getFabricIdin interfacePaucalMessage
-
deserialize
-
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.
-