public Item(ItemInstance instance, int amount) : this(instance, amount, true) { }
public int getProtection(DamageTypeIndex index) { return(ItemInstance.getProtection(index)); }
public int getDamage(DamageTypeIndex index) { return(ItemInstance.getDamage(index)); }
/// <summary> /// Adds an Item to the world /// </summary> /// <param name="instance">The item instance whick will be spawned</param> /// <param name="amount">The amount of the item to spawn at that location</param> /// <param name="position">The position where you want to spawn the item</param> /// <returns>returns the generated item</returns> public Item addItem(ItemInstance instance, int amount, Vec3f position) { return(this.addItem(instance, amount, position, new Vec3f(0.0f, 0.0f, 1.0f))); }