Class MaterialRegistry

java.lang.Object
com.codename1.gaming.level.MaterialRegistry

public final class MaterialRegistry extends Object
Process-wide registry of pluggable Materials, keyed by id. Built-in surfaces (grass, road, stone, sand, water, dirt) are registered on first use; applications add their own via #register(Material). Unknown ids resolve to a neutral grey placeholder so a level that references a not-yet-registered material still loads.