public enum FacadeAssemblyRecipes extends java.lang.Enum<FacadeAssemblyRecipes> implements IAssemblyRecipeProvider, IRecipeViewable.IRecipePowered
IRecipeViewable.IRecipePowered, IRecipeViewable.IViewableGrid
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static net.minecraft.item.ItemStack |
createFacadeStack(FacadeBlockStateInfo info,
boolean isHollow) |
ChangingObject<java.lang.Long> |
getMjCost() |
java.util.Optional<AssemblyRecipe> |
getRecipe(net.minecraft.util.ResourceLocation name,
net.minecraft.nbt.NBTTagCompound recipeTag)
Returns recipe by it's name
|
ChangingItemStack[] |
getRecipeInputs() |
ChangingItemStack |
getRecipeOutputs() |
java.util.List<AssemblyRecipe> |
getRecipesFor(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> possible)
Should return a list of all the valid recipes given the input items.
|
static FacadeAssemblyRecipes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FacadeAssemblyRecipes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FacadeAssemblyRecipes INSTANCE
public static FacadeAssemblyRecipes[] values()
for (FacadeAssemblyRecipes c : FacadeAssemblyRecipes.values()) System.out.println(c);
public static FacadeAssemblyRecipes valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nonnull public java.util.List<AssemblyRecipe> getRecipesFor(@Nonnull net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> possible)
IAssemblyRecipeProvider
getRecipesFor
in interface IAssemblyRecipeProvider
public static net.minecraft.item.ItemStack createFacadeStack(FacadeBlockStateInfo info, boolean isHollow)
public ChangingItemStack[] getRecipeInputs()
getRecipeInputs
in interface IRecipeViewable
public ChangingItemStack getRecipeOutputs()
getRecipeOutputs
in interface IRecipeViewable
public ChangingObject<java.lang.Long> getMjCost()
getMjCost
in interface IRecipeViewable.IRecipePowered
public java.util.Optional<AssemblyRecipe> getRecipe(@Nonnull net.minecraft.util.ResourceLocation name, @Nullable net.minecraft.nbt.NBTTagCompound recipeTag)
IAssemblyRecipeProvider
getRecipe
in interface IAssemblyRecipeProvider
recipeTag
- Additional tag attached to network-transmitted recipe definition