public class DebugIngredientHelper extends java.lang.Object implements IIngredientHelper<DebugIngredient>
Constructor and Description |
---|
DebugIngredientHelper() |
Modifier and Type | Method and Description |
---|---|
DebugIngredient |
copyIngredient(DebugIngredient ingredient)
Makes a copy of the given ingredient.
|
net.minecraft.item.ItemStack |
getCheatItemStack(DebugIngredient ingredient)
Called when a player is in cheat mode and clicks an ingredient in the list.
|
java.lang.String |
getDisplayName(DebugIngredient ingredient)
Display name used for searching.
|
java.lang.String |
getErrorInfo(DebugIngredient ingredient)
Get information for error messages involving this ingredient.
|
DebugIngredient |
getMatch(java.lang.Iterable<DebugIngredient> ingredients,
DebugIngredient ingredientToMatch)
Find a matching ingredient from a group of them.
|
java.lang.String |
getModId(DebugIngredient ingredient)
Return the modId of the mod that created this ingredient.
|
java.lang.String |
getResourceId(DebugIngredient ingredient)
Return the resource id of the given ingredient.
|
java.lang.String |
getUniqueId(DebugIngredient ingredient)
Unique ID for use in comparing, blacklisting, and looking up ingredients.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColors, getCreativeTabNames, getDisplayModId, getMatch, getTags, getUniqueId, getWildcardId, isIngredientOnServer, isValidIngredient, normalizeIngredient, translateFocus
@Nullable public DebugIngredient getMatch(java.lang.Iterable<DebugIngredient> ingredients, DebugIngredient ingredientToMatch)
IIngredientHelper
getMatch
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getDisplayName(DebugIngredient ingredient)
IIngredientHelper
getDisplayName
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getUniqueId(DebugIngredient ingredient)
IIngredientHelper
getUniqueId
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getModId(DebugIngredient ingredient)
IIngredientHelper
getModId
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getResourceId(DebugIngredient ingredient)
IIngredientHelper
getResourceId
in interface IIngredientHelper<DebugIngredient>
public net.minecraft.item.ItemStack getCheatItemStack(DebugIngredient ingredient)
IIngredientHelper
getCheatItemStack
in interface IIngredientHelper<DebugIngredient>
ingredient
- The ingredient to cheat in. Do not edit this ingredient.public DebugIngredient copyIngredient(DebugIngredient ingredient)
IIngredientHelper
copyIngredient
in interface IIngredientHelper<DebugIngredient>
ingredient
- the ingredient to copypublic java.lang.String getErrorInfo(@Nullable DebugIngredient ingredient)
IIngredientHelper
getErrorInfo
in interface IIngredientHelper<DebugIngredient>