public static ItemStack forColors(int color1, int color2) { ItemStack stack = new ItemStack(ModItems.twigWand); ItemNBTHelper.setInt(stack, TAG_COLOR1, color1); ItemNBTHelper.setInt(stack, TAG_COLOR2, color2); return stack; }
public void bindPool(ItemStack stack, TileEntity pool) { ItemNBTHelper.setInt(stack, TAG_POS_X, pool == null ? 0 : pool.xCoord); ItemNBTHelper.setInt(stack, TAG_POS_Y, pool == null ? -1 : pool.yCoord); ItemNBTHelper.setInt(stack, TAG_POS_Z, pool == null ? 0 : pool.zCoord); ItemNBTHelper.setInt( stack, TAG_DIM, pool == null ? 0 : pool.getWorldObj().provider.dimensionId); }
public void setManaBacklog(ItemStack stack, int backlog) { ItemNBTHelper.setInt(stack, TAG_MANA_BACKLOG, backlog); }
public void setMana(ItemStack stack, int mana) { ItemNBTHelper.setInt(stack, TAG_MANA, Math.max(0, mana)); }
public static void setBoundSpreader(ItemStack stack, int x, int y, int z) { ItemNBTHelper.setInt(stack, TAG_SPREADER_X, x); ItemNBTHelper.setInt(stack, TAG_SPREADER_Y, y); ItemNBTHelper.setInt(stack, TAG_SPREADER_Z, z); }
public static void setTicksSinceSpreaderUse(ItemStack stack, int ticks) { ItemNBTHelper.setInt(stack, TAG_TICKS_SINCE_SPREADER, ticks); }
public void setManaForDisplay(ItemStack stack, int mana) { ItemNBTHelper.setInt(stack, TAG_MANA_VISUAL, mana); }