Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 947 Bytes

properties.md

File metadata and controls

21 lines (15 loc) · 947 Bytes

Properties API

Property "types" are handled by SlimeProperty instances. Whilst not allowing to create SlimeProperty objects, there is a list of all availeable properties. Properties and their values are stored in SlimePropertyMaps.

Example Usage:

// Create a new and empty property map
SlimePropertyMap properties = new SlimePropertyMap();

properties.setString(SlimeProperties.DIFFICULTY, "normal");
properties.setInt(SlimeProperties.SPAWN_X, 123);
properties.setInt(SlimeProperties.SPAWN_Y, 112);
properties.setInt(SlimeProperties.SPAWN_Z, 170);
/* Add as many as you like */