public abstract class Material extends Object implements NegativityObject
Constructor and Description |
---|
Material() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
abstract String |
getId()
Get the material main ID
(the official platform's name)
|
boolean |
isConsumable()
Check if an item is consumable
Warn: it's a manual check, on a generic one for all material.
|
abstract boolean |
isSolid()
Check if the material can be solid
|
abstract boolean |
isTransparent()
Check if the type is transparent
(if we can see through it)
|
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefault
public abstract boolean isSolid()
public abstract boolean isTransparent()
public abstract String getId()
public boolean isConsumable()