本文整理匯總了Java中org.bukkit.inventory.EntityEquipment.getLeggings方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityEquipment.getLeggings方法的具體用法?Java EntityEquipment.getLeggings怎麽用?Java EntityEquipment.getLeggings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.bukkit.inventory.EntityEquipment
的用法示例。
在下文中一共展示了EntityEquipment.getLeggings方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: EquipmentConfiguration
import org.bukkit.inventory.EntityEquipment; //導入方法依賴的package包/類
public EquipmentConfiguration(EntityEquipment equips) {
this.head = equips.getHelmet();
this.chest = equips.getChestplate();
this.legs = equips.getLeggings();
this.boots = equips.getBoots();
this.heldMain = equips.getItemInMainHand();
this.heldOff = equips.getItemInOffHand();
}
示例2: fillInventory
import org.bukkit.inventory.EntityEquipment; //導入方法依賴的package包/類
private void fillInventory(){
menuInv.clear();
EntityEquipment equipment = armorstand.getEquipment();
ItemStack helmet = equipment.getHelmet();
ItemStack chest = equipment.getChestplate();
ItemStack pants = equipment.getLeggings();
ItemStack feetsies = equipment.getBoots();
ItemStack rightHand = equipment.getItemInMainHand();
ItemStack leftHand = equipment.getItemInOffHand();
equipment.clear();
ItemStack disabledIcon = new ItemStack(Material.BARRIER);
ItemMeta meta = disabledIcon.getItemMeta();
meta.setDisplayName(pe.plugin.getLang().getMessage("disabled", "warn")); //equipslot.msg <option>
ArrayList<String> loreList = new ArrayList<String>();
loreList.add(Util.encodeHiddenLore("ase icon"));
meta.setLore(loreList);
disabledIcon.setItemMeta(meta);
ItemStack helmetIcon = createIcon(Material.LEATHER_HELMET, "helm");
ItemStack chestIcon = createIcon(Material.LEATHER_CHESTPLATE, "chest");
ItemStack pantsIcon = createIcon(Material.LEATHER_LEGGINGS, "pants");
ItemStack feetsiesIcon = createIcon(Material.LEATHER_BOOTS, "boots");
ItemStack rightHandIcon = createIcon(Material.WOOD_SWORD, "rhand");
ItemStack leftHandIcon = createIcon(Material.SHIELD, "lhand");
ItemStack[] items =
{ helmetIcon, chestIcon, pantsIcon, feetsiesIcon, rightHandIcon, leftHandIcon, disabledIcon, disabledIcon, disabledIcon,
helmet, chest, pants, feetsies, rightHand, leftHand, disabledIcon, disabledIcon, disabledIcon
};
menuInv.setContents(items);
}
示例3: get
import org.bukkit.inventory.EntityEquipment; //導入方法依賴的package包/類
@Override
@Nullable
public ItemStack get(final EntityEquipment e) {
return e.getLeggings();
}