當前位置: 首頁>>代碼示例>>Java>>正文


Java EntityEquipment.getBoots方法代碼示例

本文整理匯總了Java中org.bukkit.inventory.EntityEquipment.getBoots方法的典型用法代碼示例。如果您正苦於以下問題:Java EntityEquipment.getBoots方法的具體用法?Java EntityEquipment.getBoots怎麽用?Java EntityEquipment.getBoots使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.bukkit.inventory.EntityEquipment的用法示例。


在下文中一共展示了EntityEquipment.getBoots方法的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.getBoots();
}
 
開發者ID:nfell2009,項目名稱:Skript,代碼行數:6,代碼來源:EquipmentSlot.java


注:本文中的org.bukkit.inventory.EntityEquipment.getBoots方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。