[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

Generated at Thu Apr 03 11:45:00 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.