Record Class StarForgeUpdateRecipesPayload
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.network.payload.star_forge.StarForgeUpdateRecipesPayload
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStarForgeUpdateRecipesPayload(UUID playerUUID, int containerId, List<net.minecraft.resources.ResourceLocation> recipeIds) Creates an instance of aStarForgeUpdateRecipesPayloadrecord class.StarForgeUpdateRecipesPayload(net.minecraft.network.FriendlyByteBuf buffer) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecontainerIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationid()Returns the value of theplayerUUIDrecord component.List<net.minecraft.resources.ResourceLocation>Returns the value of therecipeIdsrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
StarForgeUpdateRecipesPayload
public StarForgeUpdateRecipesPayload(net.minecraft.network.FriendlyByteBuf buffer) -
StarForgeUpdateRecipesPayload
public StarForgeUpdateRecipesPayload(UUID playerUUID, int containerId, List<net.minecraft.resources.ResourceLocation> recipeIds) Creates an instance of aStarForgeUpdateRecipesPayloadrecord class.- Parameters:
playerUUID- the value for theplayerUUIDrecord componentcontainerId- the value for thecontainerIdrecord componentrecipeIds- the value for therecipeIdsrecord component
-
-
Method Details
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) - Specified by:
writein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
id
public net.minecraft.resources.ResourceLocation id()- Specified by:
idin interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
playerUUID
Returns the value of theplayerUUIDrecord component.- Returns:
- the value of the
playerUUIDrecord component
-
containerId
public int containerId()Returns the value of thecontainerIdrecord component.- Returns:
- the value of the
containerIdrecord component
-
recipeIds
Returns the value of therecipeIdsrecord component.- Returns:
- the value of the
recipeIdsrecord component
-