本文整理汇总了Java中org.bukkit.inventory.InventoryView.Property方法的典型用法代码示例。如果您正苦于以下问题:Java InventoryView.Property方法的具体用法?Java InventoryView.Property怎么用?Java InventoryView.Property使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bukkit.inventory.InventoryView
的用法示例。
在下文中一共展示了InventoryView.Property方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.bukkit.inventory.InventoryView; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public boolean init(Expression<?>[] e, int arg1, Kleenean arg2, ParseResult arg3) {
player = (Expression<Player>) e[0];
property = (Expression<InventoryView.Property>) e[1];
number = (Expression<Number>) e[2];
return true;
}
示例2: setWindowProperty
import org.bukkit.inventory.InventoryView; //导入方法依赖的package包/类
public boolean setWindowProperty(InventoryView.Property prop, int value) {
return false;
}
示例3: setWindowProperty
import org.bukkit.inventory.InventoryView; //导入方法依赖的package包/类
public boolean setWindowProperty(InventoryView.Property prop, int value) {
throw new NotImplementedException("setWindowProperty(InventoryView.Property, int)");
}
示例4: setWindowProperty
import org.bukkit.inventory.InventoryView; //导入方法依赖的package包/类
/**
* If the player currently has an inventory window open, this method will
* set a property of that window, such as the state of a progress bar.
*
* @param prop The property.
* @param value The value to set the property to.
* @return True if the property was successfully set.
*/
public boolean setWindowProperty(InventoryView.Property prop, int value);