Unruled Api: Difference between revisions
Nerjal Nosk (talk | contribs) No edit summary |
Nerjal Nosk (talk | contribs) m fix list (I hope) |
||
| Line 10: | Line 10: | ||
Since 0.1: | Since 0.1: | ||
< | <ul> | ||
< | <li>Floating gamerules | ||
< | <ul> | ||
< | <li>Stores a <i>float</i> value, with precision ranging from 2<sup>-126</sup> to 2<sup>127</sup></li> | ||
</ul> | |||
</li> | </li> | ||
<li>Long gamerules | |||
<ul> | |||
<li>Stores a <i>long</i> value, ranging from -2<sup>63</sup> to 2<sup>63</sup>-1</li> | |||
</ul> | </ul> | ||
</li> | </li> | ||
<li>Double gamerules | |||
<ul> | |||
<li>Stores a <i>double</i> value, with precision ranging from 2<sup>-1022</sup> to 2<sup>1023</sup></li> | |||
</ul> | </ul> | ||
</li> | </li> | ||
<li>String gamerules | |||
<ul> | |||
<li>Stores a short textual value, with a hard maximum length of 128 characters.</li> | |||
</ul> | </ul> | ||
</li> | </li> | ||
<li>Text gamerules | |||
<ul> | |||
<li>Stores a textual value, with an arbitrary maximum length to be determined by the mod creating the gamerule.</li> | |||
</ul> | </ul> | ||
</li> | </li> | ||
<li>Enum gamerules | |||
<ul> | |||
<li>Stores an enum value, from a specified enum class. Values are parsed and recognized by name, and only those are suggested to the player upon trying to modify the gamerule's value from the chat.</li> | |||
</ul> | </ul> | ||
</li> | </li> | ||
</ul> | |||
Since 0.6 | Since 0.6 | ||
< | <ul> | ||
< | <li>Registry Entry gamerules | ||
< | <ul> | ||
< | <li>Stores a {{Registry}} entry value as a {{Resource_Location}}, and matches it with the appropriate registry value for the mod creating the gamerule to use.</li> | ||
</ul> | |||
</li> | </li> | ||
</ul> | |||
All gamerule types have integration with the World Creation's Gamerules menu. However, due to menu development not being the strong suit of the developer, text rules' integration is marked as <i>Not Yet Implemented</i>, in view of a future easier mean to edit long to very long textual fields in a single menu. | All gamerule types have integration with the World Creation's Gamerules menu. However, due to menu development not being the strong suit of the developer, text rules' integration is marked as <i>Not Yet Implemented</i>, in view of a future easier mean to edit long to very long textual fields in a single menu. | ||