Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LunariumDustRecipe implements ILunariumDustRecipe {
- private final ResourceLocation id;
- private Ingredient input;
- private final ItemStack output;
- public LunariumDustRecipe(ResourceLocation id, Ingredient input, ItemStack output) //Is Flexible - can have more then one input or output.
- {
- this.id = id;
- this.output = output;
- this.input = input;
- }
- @Override
- public boolean matches(RecipeWrapper inv, World worldIn) {
- if (this.input.test(inv.getStackInSlot(0))) {
- return true;
- }
- return false;
- }
- @Override
- public ItemStack getCraftingResult(RecipeWrapper inv) {
- return this.output;
- }
- @Override
- public ItemStack getRecipeOutput() {
- return this.output;
- }
- @Override
- public ResourceLocation getId() {
- return this.id;
- }
- @Override
- public IRecipeSerializer<?> getSerializer() {
- return RecipeSerializerInit.LUNAR_FORGE_SERIALIZER.get();
- }
- @Override
- public Ingredient getInput() {
- return this.input;
- }
- @Override
- public NonNullList<Ingredient> getIngredients() {
- return NonNullList.from(null, this.input);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement