/// <summary> /// Changes the selected entities' armor to the specified item /// </summary> /// <param name="selector">the <see cref="BaseSelector"/> to use</param> /// <param name="giveItem">the <see cref="Item"/> to give</param> /// <param name="armorSlot">the armor slot to put the item in</param> public void Armor(BaseSelector selector, Item giveItem, ID.ArmorSlot armorSlot) { ForFunction.AddCommand(new ReplaceitemEntityCommand(selector, new Slots.ArmorSlot(armorSlot), giveItem, giveItem.Count ?? 1)); }
/// <summary> /// Intializes a new <see cref="ArmorSlot"/> /// </summary> /// <param name="slot">The armor slot to select</param> public ArmorSlot(ID.ArmorSlot slot) { Slot = slot; }