mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-18 19:29:08 +00:00
- Added getPlayer to crafting inventory - Added crafting inventory to recipe function - Removed some print statements - Renamed the global minetweaker variable to tweaker - Bumped forge version to 1121 due to ore dictionary changes - Added bracket handler for ore entries - Enabled withTag(null) - Fixed issues with the new ore dictionary implementation in Forge 1113+ - Fixed bug in Ore recipe conversion - Fixed import errors not being detected and reported properly - Fixed nested NBT tags not being converted properly - Fixed something in any type implementation - Added commas in function name generation - Added class registries for IC2 and NEI integration
48 lines
1.0 KiB
Java
48 lines
1.0 KiB
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package minetweaker.api.recipes;
|
|
|
|
import minetweaker.api.item.IItemStack;
|
|
import minetweaker.api.player.IPlayer;
|
|
import stanhebben.zenscript.annotations.ZenClass;
|
|
import stanhebben.zenscript.annotations.ZenGetter;
|
|
import stanhebben.zenscript.annotations.ZenMethod;
|
|
|
|
/**
|
|
*
|
|
* @author Stan
|
|
*/
|
|
@ZenClass("minetweaker.recipes.ICraftingInventory")
|
|
public interface ICraftingInventory {
|
|
@ZenGetter("player")
|
|
public IPlayer getPlayer();
|
|
|
|
@ZenGetter("size")
|
|
public int getSize();
|
|
|
|
@ZenGetter("width")
|
|
public int getWidth();
|
|
|
|
@ZenGetter("height")
|
|
public int getHeight();
|
|
|
|
@ZenGetter("stackCount")
|
|
public int getStackCount();
|
|
|
|
@ZenMethod
|
|
public IItemStack getStack(int i);
|
|
|
|
@ZenMethod
|
|
public IItemStack getStack(int x, int y);
|
|
|
|
@ZenMethod
|
|
public void setStack(int x, int y, IItemStack stack);
|
|
|
|
@ZenMethod
|
|
public void setStack(int i, IItemStack stack);
|
|
}
|