mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 12:32:29 +00:00
Does not mean the added functions are implemented in the prior versions, but it means they all compile against the same API and ZS version
34 lines
732 B
Java
34 lines
732 B
Java
package minetweaker.api.recipes;
|
|
|
|
import minetweaker.api.player.IPlayer;
|
|
import minetweaker.api.world.IDimension;
|
|
|
|
/**
|
|
* @author Stan
|
|
*/
|
|
public class CraftingInfo implements ICraftingInfo {
|
|
|
|
private final ICraftingInventory inventory;
|
|
private final IDimension dimension;
|
|
|
|
public CraftingInfo(ICraftingInventory inventory, IDimension dimension) {
|
|
this.inventory = inventory;
|
|
this.dimension = dimension;
|
|
}
|
|
|
|
@Override
|
|
public ICraftingInventory getInventory() {
|
|
return inventory;
|
|
}
|
|
|
|
@Override
|
|
public IPlayer getPlayer() {
|
|
return inventory.getPlayer();
|
|
}
|
|
|
|
@Override
|
|
public IDimension getDimension() {
|
|
return dimension;
|
|
}
|
|
}
|