本文整理汇总了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();
}