getting ID and metadata from a TileEntity class (not placed in world)

Discussion in 'Plugin Development' started by reghzyTheR, Jul 15, 2021.

  1. Offline


    for example, is it possible to have TileEntity instance (say TileEntityChest) and then get ID (and possibly) data from it? for a chest it would be 54:0

    or maybe even without an instance, is there some sort of TileEntity id (like what is saved to NBT) to item ID map?

    i could probably build some sort of cache myself by iterating through every TileEntity in the world, and then get the ID of it and put that in a HashMap<Class<?>, Integer> map
  2. Offline


    @reghzyTheR You just asked a question and then gave a solution?
  3. Offline


    If you are expecting spoonfeeding then we cannot provide.
    Like you should try to solve it with the solution you made.

Share This Page