mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 15:24:47 +00:00
A lot of GOOD API DOCUMENTATION
This commit is contained in:
1 parent
a6c55ca331
commit
319e774518
131 files changed
+3363
-175
No files matched your search
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user