Erasure of magic values #40


  • Task
  • Waiting
Open
Assigned to _ForgeUser7105870
  • _ForgeUser7105870 created this issue Sep 15, 2013
    Owner

    Bukkit decided that having raw Ids and data values for constants (and even names!) was a bad idea, so they are removing that. As of right now BKCommonLib redirects all these method calls to calls inside the library, so they can easily be re-implemented manually when that is needed.

    This is a continuous task reminding to find alternatives to Block/Item/Material Ids and Data. MaterialData is possibly the best alternative for raw data, but it does not support everything such as Items (they have durability). There should also be a proper way of storing Material-Id-mapped data in a hashmap, as that is a frequent use of the ID system.

    Please mind that, with the 'make your own material' goal in the minds of MC developers, Material WILL stop being an enumeration. EnumMap and switch statements WILL stop functioning.

  • _ForgeUser7105870 added the tags Waiting Task Sep 15, 2013
  • _ForgeUser7105870 edited description Sep 16, 2013
  • _ForgeUser7105870 edited description Sep 21, 2013

To post a comment, please login or register a new account.