Search in sources :

Example 1 with ItemMaterial

use of betterwithaddons.item.ItemMaterial in project BetterWithAddons by DaedalusGame.

the class Condensed method setContainer.

@ZenMethod
public static void setContainer(@NotNull IItemStack condensed, @NotNull IItemStack input) {
    ItemStack item = CraftTweakerMC.getItemStack(condensed);
    ItemStack container = CraftTweakerMC.getItemStack(input);
    if (item.getItem() instanceof ItemMaterial)
        CraftTweaker.LATE_ACTIONS.add(new SetContainer((ItemMaterial) item.getItem(), container));
}
Also used : ItemMaterial(betterwithaddons.item.ItemMaterial) ItemStack(net.minecraft.item.ItemStack) IItemStack(crafttweaker.api.item.IItemStack) ZenMethod(stanhebben.zenscript.annotations.ZenMethod)

Aggregations

ItemMaterial (betterwithaddons.item.ItemMaterial)1 IItemStack (crafttweaker.api.item.IItemStack)1 ItemStack (net.minecraft.item.ItemStack)1 ZenMethod (stanhebben.zenscript.annotations.ZenMethod)1