Files
CraftTweaker/MineTweaker3-API/src/main/java/minetweaker/api/recipes/CraftingInfo.java
T
kindlich 1c0344a25b Updated to 1.11.2 API version
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
2019-10-20 18:00:11 +02:00

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;
}
}