setting material meta data bukkit forums

BlockState (Spigot-API 1.16.5-R0.1-SNAPSHOT API)

void setData (@NotNull MaterialData data) Sets the metadata for this block state. Bukkit/ItemStack.java at master · Bukkit/Bukkit · GitHubDec 14, 2013 · Material type = Material. getMaterial((String) args. get(" type ")); short damage = 0; int amount = 1; if (args. containsKey(" damage ")) {damage = ((Number) args. get(" damage ")). shortValue();} if (args. containsKey(" amount ")) {amount = (Integer) args. get(" amount ");} ItemStack result = new ItemStack (type, amount, damage);

Bukkit/Material.java at master · Bukkit/Bukkit · GitHub

Bukkit / src / main / java / org / bukkit / Material.java / Jump to Code definitions getId Method getMaxStackSize Method getMaxDurability Method getData Method getNewData Method isBlock Method isEdible Method getMaterial Method getMaterial Method matchMaterial Method isRecord Method isSolid Method isTransparent Method isFlammable Method FAQ - Official BukkitWikiAug 21, 2017 · 1 What is the BukkitWiki? 2 What is the difference between Bukkit and CraftBukkit? 3 Where can I get it? 4 What is the difference between the Recommended, Beta, and Development builds? 5 Where do I find plugins? or How do I add features to my server? 6 I made a plugin. Where do I submit it? 7 How do I get Bukkit source code? 8 How do I rename a command? 9 How do I customize my LivingEntity (Spigot-API 1.16.5-R0.1-SNAPSHOT API)transparent - Set containing all transparent block Materials (set to null for only air) maxDistance - this is the maximum distance to scan. This may be further limited by the server, but never to less than 100 blocks Returns:list containing the last 2 blocks along the living entity's line of sight; getTargetBlockExact

Overview - Block Manager - Bukkit Plugins - Projects - Bukkit

Oct 01, 2015 · At the moment you can only set a data value and you can't use the same material with different data values (you can't have two Dirt section with different data values). I will change this in the next version. Permissions. BlockManager.admin - gives acces to Spigot-1.8/CraftPlayer.java at master · Attano - GitHubContribute to Attano/Spigot-1.8 development by creating an account on GitHub. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.Block (Spigot-API 1.16.5-R0.1-SNAPSHOT API)Represents a block. This is a live object, and only one Block may exist for any given location in a world. The state of the block may change concurrently to your own handling of it; use block.getState() to get a snapshot state of a block which will not be modified.