[PLUG-166] Using new minecraft ID Created: 04/Jul/16 Updated: 05/Jul/16 Resolved: 05/Jul/16 |
|
Status: | Resolved |
Project: | SpigotPlugins |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Improvement | Priority: | Major |
Reporter: | Vinetos | Assignee: | Unassigned |
Resolution: | Done | Votes: | 0 |
Labels: | api,, bukkit, id, minecraft, minecraftkey |
Plugin: | None |
Description |
Since 1.8, minecraft to use of new id alpha ("minecaft:stone") for example. However, the API always uses ID and not two what is it's a pity because since 1.10 (or 1.9) we are obliged to use / give @p minecraft:stone instead of / give @p 1. It would be necessary to add a method which allows to get back a Material from newer ID even if it is possible with the NMS with MinecraftKey. Ex: Material m = Material.findByMinecraftId("minecraft:stone"); Vinetos |
Comments |
Comment by md_5 [ 05/Jul/16 ] |
See Bukkit.getUnsafe |