mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-24 22:04:23 +00:00
34 lines
712 B
Java
34 lines
712 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;
|
|
}
|
|
}
|