Class PlayerRecipeModel
java.lang.Object
net.raphimc.viabedrock.protocol.model.PlayerRecipeModel
One backend's recipe query, selected output and collections, independent of screen presentation.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerRecipeModel(ItemRewriter items, CraftingDataTracker recipes, Container owner, boolean filtering, boolean includeCursor, byte[] query) Filtering is the effective backend policy; profile preferences belong to the screen controller.PlayerRecipeModel(ItemRewriter items, CraftingDataTracker recipes, PlayerRecipeContext owner, boolean filtering, boolean includeCursor, byte[] query) -
Method Summary
Modifier and TypeMethodDescriptionintavailability(CreativeInventoryModel.View view, BedrockItem output) intoutputCount(BedrockItem output) Native count text reads output quantity, never the collection's availability state.byte[]query()voidrefresh(CreativeInventoryModel.View view, boolean resetExpansion) voidreinstallPolicies(boolean filtering) Explicit callback installation captures current search abilities without replacing collection sources or expansion.voidreplaceCatalog(ItemRewriter items) New catalog sources do not reconstruct the backend or recapture its installed ability policies.voidselectOutput(BedrockItem output) booleantick(int leftTab) booleanupdateQuery(byte[] query) Raw equality retains selection.booleanupdateQuery(String query)
-
Constructor Details
-
PlayerRecipeModel
public PlayerRecipeModel(ItemRewriter items, CraftingDataTracker recipes, Container owner, boolean filtering, boolean includeCursor, byte[] query) Filtering is the effective backend policy; profile preferences belong to the screen controller. -
PlayerRecipeModel
public PlayerRecipeModel(ItemRewriter items, CraftingDataTracker recipes, PlayerRecipeContext owner, boolean filtering, boolean includeCursor, byte[] query)
-
-
Method Details
-
replaceCatalog
New catalog sources do not reconstruct the backend or recapture its installed ability policies. -
availability
-
reinstallPolicies
public void reinstallPolicies(boolean filtering) Explicit callback installation captures current search abilities without replacing collection sources or expansion. -
tick
public boolean tick(int leftTab) -
refresh
-
updateQuery
-
updateQuery
public boolean updateQuery(byte[] query) Raw equality retains selection. Every raw change refreshes search, even when normalization produces identical text. -
query
public byte[] query() -
selectOutput
-
outputCount
Native count text reads output quantity, never the collection's availability state. -
selectedOutput
-
collections
-