Class PrepareItemCraftEvent

    • Method Detail

      • getRecipe

        @Nullable
        public Recipe getRecipe()
        Get the recipe that has been formed. If this event was triggered by a tool repair, this will be a temporary shapeless recipe representing the repair.
        Returns:
        The recipe being crafted.
      • isRepair

        public boolean isRepair()
        Check if this event was triggered by a tool repair operation rather than a crafting recipe.
        Returns:
        True if this is a repair.
      • getHandlerList

        @NotNull
        public static HandlerList getHandlerList()