Class PlaceRecipe

java.lang.Object
com.zenith.feature.inventory.actions.PlaceRecipe
All Implemented Interfaces:
InventoryAction

@Experimental public class PlaceRecipe extends Object implements InventoryAction
Warning: unstable interface May change in future MC versions
  • Constructor Details

    • PlaceRecipe

      public PlaceRecipe(int containerId, int recipeId, boolean useMaxItems)
    • PlaceRecipe

      @Deprecated public PlaceRecipe(int containerId, String recipeOutputItem, boolean useMaxItems)
      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, use PlaceRecipe(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:
      containerId in interface InventoryAction
    • packet

      public @Nullable MinecraftPacket packet()
      Specified by:
      packet in interface InventoryAction
    • getContainerId

      public int getContainerId()
    • getRecipeId

      public int getRecipeId()
    • isUseMaxItems

      public boolean isUseMaxItems()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object