- All Superinterfaces:
PacketView
public interface UpdateRecipesPacketView
extends PacketView
Lazy view of clientbound recipe-registry synchronization.
-
Method Summary
boolean
Reports whether this version exposes the legacy indexed recipe list.
Returns the exact primary payload without copying it.
int
Returns the legacy recipe count, or zero for the modern payload shape.
void
Removes one legacy recipe using copy-on-write.
Returns the exact secondary payload when the protocol carries one.
-
Method Details
-
hasLegacyRecipes
boolean hasLegacyRecipes()
Reports whether this version exposes the legacy indexed recipe list.
-
recipeCount
int recipeCount()
Returns the legacy recipe count, or zero for the modern payload shape.
-
-
removeRecipe
void removeRecipe(int index)
Removes one legacy recipe using copy-on-write.
-
primaryPayload
Returns the exact primary payload without copying it.
-
secondaryPayload
Returns the exact secondary payload when the protocol carries one.