Java Code Examples for net.minecraft.util.NonNullList#from()
The following examples show how to use
net.minecraft.util.NonNullList#from() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FacadeRecipe.java From GregTech with GNU Lesser General Public License v3.0 | 4 votes |
public FacadeRecipe(ResourceLocation group, Ingredient plateIngredient, int facadeAmount) { this.resultStack = MetaItems.COVER_FACADE.getStackForm(facadeAmount); this.ingredients = NonNullList.from(Ingredient.EMPTY, plateIngredient, FacadeIngredient.INSTANCE); this.group = group; }
Example 2
Source File: ReColourRecipe.java From EnderStorage with MIT License | 4 votes |
public ReColourRecipe(ResourceLocation id, String group, @Nonnull ItemStack result, Ingredient ingredient) { super(id, group, result, NonNullList.from(Ingredient.EMPTY, ingredient)); this.ingredient = ingredient; }
Example 3
Source File: ChoppingRecipe.java From Survivalist with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public NonNullList<Ingredient> getIngredients() { return NonNullList.from(Ingredient.EMPTY, input); }
Example 4
Source File: DryingRecipe.java From Survivalist with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public NonNullList<Ingredient> getIngredients() { return NonNullList.from(Ingredient.EMPTY, input); }