-
Notifications
You must be signed in to change notification settings - Fork 2
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
10 changed files
with
237 additions
and
109 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
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
40 changes: 40 additions & 0 deletions
40
src/main/java/rocks/gameonthe/rockytweaks/crafttweaker/anvil/AnvilCraftingInfo.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,40 @@ | ||
package rocks.gameonthe.rockytweaks.crafttweaker.anvil; | ||
|
||
import crafttweaker.api.minecraft.CraftTweakerMC; | ||
import crafttweaker.api.player.IPlayer; | ||
import crafttweaker.api.recipes.ICraftingInfo; | ||
import crafttweaker.api.recipes.ICraftingInventory; | ||
import crafttweaker.api.world.IWorld; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.world.World; | ||
|
||
public class AnvilCraftingInfo implements ICraftingInfo { | ||
|
||
private final EntityPlayer player; | ||
private final World world; | ||
|
||
public AnvilCraftingInfo(EntityPlayer player, World world) { | ||
this.player = player; | ||
this.world = world; | ||
} | ||
|
||
@Override | ||
public ICraftingInventory getInventory() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public IPlayer getPlayer() { | ||
return CraftTweakerMC.getIPlayer(player); | ||
} | ||
|
||
@Override | ||
public int getDimension() { | ||
return getWorld().getDimension(); | ||
} | ||
|
||
@Override | ||
public IWorld getWorld() { | ||
return CraftTweakerMC.getIWorld(world); | ||
} | ||
} |
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
44 changes: 33 additions & 11 deletions
44
src/main/java/rocks/gameonthe/rockytweaks/crafttweaker/anvil/AnvilRecipe.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
15 changes: 8 additions & 7 deletions
15
src/main/java/rocks/gameonthe/rockytweaks/crafttweaker/anvil/AnvilRecipeGroup.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
Oops, something went wrong.