Hi guys, I am making a blockworth type of api for my server, but I was wondering if there is any MaterialType variable? I have looked around but could not find any answers. It would be loads easier then typing block.getType() a ton.. Thanks! EDIT: Is it possible without using block IDs?
Beeperdp Not entirely sure what you're asking here. Block#getType() returns the Material enum value that represents the Block's type. Can you elaborate?
I think what you're searching for is the Material enum values, like Dragonphase said. They are used as Material.STONE, for example.
Dragonphase BaranCODE Sorry, I need a way to store the type of a block, for instance Material.STONE in a variables that is comparable to another material, maybe Material.DIRT easily.
Beeperdp To compare Materials? Code:java Material material1 = Material.STONE;Material material2 = Material.DIRT; if (material1 == material2){ //False }