generated from ybw0014/GuizhanSlimefunAddon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
.../java/net/guizhanss/fastmachines/items/machines/infinityexpansion/FastMobDataInfuser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package net.guizhanss.fastmachines.items.machines.infinityexpansion; | ||
|
||
import java.util.List; | ||
import java.util.logging.Level; | ||
|
||
import org.bukkit.Material; | ||
import org.bukkit.inventory.ItemStack; | ||
|
||
import io.github.mooy1.infinityexpansion.items.mobdata.MobDataInfuser; | ||
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack; | ||
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType; | ||
|
||
import net.guizhanss.fastmachines.FastMachines; | ||
import net.guizhanss.fastmachines.core.recipes.RawRecipe; | ||
import net.guizhanss.fastmachines.items.machines.generic.AInfinityMachine; | ||
import net.guizhanss.fastmachines.utils.RecipeUtils; | ||
|
||
public final class FastMobDataInfuser extends AInfinityMachine { | ||
private static final ItemStack CRAFT_ITEM = FastMachines.getLocalization().getItem( | ||
"CRAFT", Material.LODESTONE); | ||
|
||
public FastMobDataInfuser(SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) { | ||
super(item, recipeType, recipe); | ||
} | ||
|
||
@Override | ||
public void registerRecipes() { | ||
FastMachines.debug("Registering recipes for {0}", getClass().getSimpleName()); | ||
try { | ||
List<RawRecipe> rawRecipes = RecipeUtils.getInfinityMachineRecipes(MobDataInfuser.class); | ||
RecipeUtils.registerRecipes(recipes, rawRecipes, false); | ||
} catch (Exception ex) { | ||
FastMachines.log(Level.SEVERE, ex, "An error has occurred while registering recipes for {0}", getClass().getSimpleName()); | ||
} | ||
} | ||
|
||
@Override | ||
protected ItemStack getCraftItem() { | ||
return CRAFT_ITEM; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters