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, isConsumablepublic JsonMaterial(JSONObject json)
public boolean isSolid()
Materialpublic boolean isTransparent()
MaterialisTransparent in class Materialpublic String getId()
Materialpublic 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.