Class PlaceRecipe
java.lang.Object
com.zenith.feature.inventory.actions.PlaceRecipe
- All Implemented Interfaces:
InventoryAction
Warning: unstable interface
May change in future MC versions
-
Constructor Summary
ConstructorsConstructorDescriptionPlaceRecipe(int containerId, int recipeId, boolean useMaxItems) PlaceRecipe(int containerId, String recipeOutputItem, boolean useMaxItems) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanintbooleanintintinthashCode()boolean@Nullable MinecraftPacketpacket()toString()Methods inherited from interface InventoryAction
isStackEmpty
-
Constructor Details
-
PlaceRecipe
public PlaceRecipe(int containerId, int recipeId, boolean useMaxItems) -
PlaceRecipe
Deprecated.Note: there can be multiple recipes with the same output item, in which case this will choose a pseudo-random one. If you need more control over the exact recipe, usePlaceRecipe(int, int, boolean)and find the recipe ID you want manually from CACHE.getRecipeCache().getRecipeBookEntries() it may be simpler to just use ClickItem and ShiftClick actions if you know the items and shape
-
-
Method Details
-
containerId
public int containerId()- Specified by:
containerIdin interfaceInventoryAction
-
packet
- Specified by:
packetin interfaceInventoryAction
-
getContainerId
public int getContainerId() -
getRecipeId
public int getRecipeId() -
isUseMaxItems
public boolean isUseMaxItems() -
equals
-
canEqual
-
hashCode
-
toString
-