mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 12:32:29 +00:00
- Implemented advanced recipes on <*> values - Removed unused ZenScript classes - Continued work on any values - Moved documentation generation to buildSrc - Started work on a jar merging task - Added toString implementation to ingredients - Added stack count to ICraftingInventory - Fixed imports - Added logCommand to the logger to log command output - Implemented memory script provider to load scripts received from the server - Added exception handling for script execution - First attempt at creating a transformer to generate a list of ZenClass and ZenExpansion classes - Added console commands (reload, names, liquids, inventory, hand, oredict) - Added general logic - Fixed item ingredients for wildcard sizes - Implemented selective recipe removal - Fixed null recipe results - Started implementation of player-specific recipes - Removed redundant IC2 mod copy - Other minor fixes
63 lines
1.4 KiB
Java
63 lines
1.4 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.minecraft.item;
|
|
|
|
import minetweaker.minecraft.data.IData;
|
|
import minetweaker.minecraft.liquid.ILiquidStack;
|
|
import stanhebben.zenscript.annotations.OperatorType;
|
|
import stanhebben.zenscript.annotations.ZenClass;
|
|
import stanhebben.zenscript.annotations.ZenGetter;
|
|
import stanhebben.zenscript.annotations.ZenMethod;
|
|
import stanhebben.zenscript.annotations.ZenOperator;
|
|
|
|
/**
|
|
*
|
|
* @author Stan
|
|
*/
|
|
@ZenClass("minecraft.item.IItemStack")
|
|
public interface IItemStack extends IIngredient {
|
|
@ZenGetter("definition")
|
|
public IItemDefinition getDefinition();
|
|
|
|
@ZenGetter("name")
|
|
public String getName();
|
|
|
|
@ZenGetter("displayName")
|
|
public String getDisplayName();
|
|
|
|
@ZenGetter("damage")
|
|
public int getDamage();
|
|
|
|
@ZenGetter("tag")
|
|
public IData getTag();
|
|
|
|
@ZenGetter("maxDamage")
|
|
public int getMaxDamage();
|
|
|
|
@ZenGetter("liquid")
|
|
public ILiquidStack getLiquid();
|
|
|
|
@ZenOperator(OperatorType.MUL)
|
|
@ZenMethod
|
|
public IItemStack amount(int amount);
|
|
|
|
@ZenMethod
|
|
public IIngredient anyDamage();
|
|
|
|
@ZenMethod
|
|
public IItemStack withDamage(int damage);
|
|
|
|
@ZenMethod
|
|
public IItemStack withAmount(int amount);
|
|
|
|
@ZenMethod
|
|
public IItemStack withTag(IData tag);
|
|
|
|
@ZenMethod
|
|
public IItemStack updateTag(IData tagUpdate);
|
|
}
|