public class MixedMaterialManager
extends java.lang.Object
MixedMaterial
s.Constructor and Description |
---|
MixedMaterialManager() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Forget all registered materials; used when unloading a world.
|
void |
clear(MixedMaterial material)
Forget one registered material.
|
static MixedMaterialManager |
getInstance() |
MixedMaterial[] |
getMaterials() |
MixedMaterial |
register(MixedMaterial material)
Register a new material; used among others by the readObject() method
of MixedMaterial to automatically register materials from existing
worlds.
|
MixedMaterial |
registerAsNew(MixedMaterial material)
Register a new material.
|
public MixedMaterial[] getMaterials()
public void clear()
public void clear(MixedMaterial material)
public MixedMaterial register(MixedMaterial material)
material
- The material to register.public MixedMaterial registerAsNew(MixedMaterial material)
material
- The material to register.public static MixedMaterialManager getInstance()