当前位置: 首页>>代码示例>>Java>>正文


Java EntityEquipment.getLeggings方法代码示例

本文整理汇总了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();
}
 
开发者ID:Dove-Bren,项目名称:QuestManager,代码行数:9,代码来源:EquipmentConfiguration.java

示例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);
}
 
开发者ID:RypoFalem,项目名称:ArmorStandEditor,代码行数:32,代码来源:EquipmentMenu.java

示例3: get

import org.bukkit.inventory.EntityEquipment; //导入方法依赖的package包/类
@Override
@Nullable
public ItemStack get(final EntityEquipment e) {
	return e.getLeggings();
}
 
开发者ID:nfell2009,项目名称:Skript,代码行数:6,代码来源:EquipmentSlot.java


注:本文中的org.bukkit.inventory.EntityEquipment.getLeggings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。