public class JsonMaterial extends Material
Constructor and Description |
---|
JsonMaterial(JSONObject json) |
Modifier and Type | Method and Description |
---|---|
Object |
getDefault()
Get default object which is abstracted by Negativity structure.
|
String |
getId()
Get the material main ID
(the official platform's name)
|
boolean |
isSolid()
Check if the material can be solid
|
boolean |
isTransparent()
Check if the type is transparent
(if we can see through it)
|
String |
toString() |
equals, isConsumable
public JsonMaterial(JSONObject json)
public boolean isSolid()
Material
public boolean isTransparent()
Material
isTransparent
in class Material
public String getId()
Material
public Object getDefault()
NegativityObject
For example, when we use World
, beside there is the Spigot/Sponge... world.
We can get the default platform object, in the example, the platform world.