本文整理汇总了Java中org.bukkit.Material.MAP属性的典型用法代码示例。如果您正苦于以下问题:Java Material.MAP属性的具体用法?Java Material.MAP怎么用?Java Material.MAP使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.bukkit.Material
的用法示例。
在下文中一共展示了Material.MAP属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Schematic
public Schematic(BSkyBlock plugin) {
this.plugin = plugin;
// Initialize
name = "";
heading = "";
description = "Default Island";
perm = "";
icon = Material.MAP;
rating = 50;
useDefaultChest = true;
biome = Settings.defaultBiome;
usePhysics = Settings.usePhysics;
file = null;
islandCompanion = new ArrayList<EntityType>();
islandCompanion.add(Settings.companionType);
companionNames = Settings.companionNames;
defaultChestItems = Settings.chestItems;
visible = true;
order = 0;
bedrock = null;
chest = null;
welcomeSign = null;
topGrass = null;
playerSpawn = null;
//playerSpawnBlock = null;
partnerName = "";
}
示例2: getRepresentation
/**
* {@inheritDoc}
*/
@Override
public default ItemStack getRepresentation() {
ItemStack stack = new ItemStack(Material.MAP);
ItemMeta meta = stack.getItemMeta();
meta.setDisplayName(ChatColor.GRAY + "Map Extend");
stack.setItemMeta(meta);
return stack;
}
示例3: toItemStack
/**
* Get this map as ItemStack
*
* @return ItemStack
*/
public ItemStack toItemStack()
{
return new ItemStack(Material.MAP, 1, (short)this.id);
}