1.14.4 Get all Slabs Types

Discussion in 'Spigot Plugin Development' started by FraterClub, Jan 19, 2020.

  1. Hey! I'm trying to get all the slabs type to add the value of the block place statistic of every slab. Do yo know if there is any way to get all slabs automatically without adding it manually? There are a lot.

    I found this thread but it's to old, I don't know if it works. https://www.spigotmc.org/threads/half-slabs.199209/

    Ty!
     
  2. Thank you!
    So... this code should work? Because is not working

    Code (Java):
        public void getSlabs(Player p) {
            for(Material m : SLABS.getValues()) {
                p.sendMessage(m.name());
            }
        }
     
  3. Doesn't compile or what doesn't work?
     
  4. "SLABS cannot be solved"
     
  5. Code (Java):
    for (Material value : Tag.SLABS.getValues()) {
       
    }
     
  6. Then import org.bukkit.Tag. to solve it.


    Do not spoon-feed him. He should have learned it by hisself. JavaDoc should be read.