A lot of GOOD API DOCUMENTATION

This commit is contained in:
Kam committed 2026-03-09 16:20:07 -04:00
1 parent a6c55ca331
commit 319e774518
131 files changed
+3363 -175

No files matched your search

+20 -3
View File
@@ -2,30 +2,47 @@ package noppes.npcs.api.handler.data;
import net.minecraft.item.ItemStack;
/**
* Represents a custom crafting recipe for the carpentry table or vanilla workbench.
*/
public interface IRecipe {
/** @return the recipe display name. */
String getName();
/** @return true if this is a global (vanilla workbench) recipe. */
boolean isGlobal();
void setIsGlobal(boolean var1);
/** @param global true for global; false for carpentry only. */
void setIsGlobal(boolean global);
/** @return true if NBT data is ignored when matching ingredients. */
boolean getIgnoreNBT();
void setIgnoreNBT(boolean var1);
/** @param ignoreNBT true to ignore NBT in ingredient matching. */
void setIgnoreNBT(boolean ignoreNBT);
/** @return true if damage values are ignored when matching ingredients. */
boolean getIgnoreDamage();
void setIgnoreDamage(boolean var1);
/** @param ignoreDamage true to ignore damage in ingredient matching. */
void setIgnoreDamage(boolean ignoreDamage);
/** @return the recipe grid width. */
int getWidth();
/** @return the recipe grid height. */
int getHeight();
/** @return the resulting item stack. */
ItemStack getResult();
/** @return the ingredient item stacks in grid order. */
ItemStack[] getRecipe();
/** Deletes this recipe from the handler. */
void delete();
/** @return the unique recipe ID. */
int getId();
}