Rule

A game rule that prevents the client from doing client-side actions and animations.

Members

Functions

decode
void decode(Buffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
encode
void encode(Buffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

COMMAND_BLOCK_OUTPUT
enum string COMMAND_BLOCK_OUTPUT;
Undocumented in source.
DROWNING_DAMAGE
enum string DROWNING_DAMAGE;
Undocumented in source.
FALL_DAMAGE
enum string FALL_DAMAGE;
Undocumented in source.
FIELDS
enum string[] FIELDS;
Undocumented in source.
FIRE_DAMAGE
enum string FIRE_DAMAGE;
Undocumented in source.
PVP
enum string PVP;
Undocumented in source.
SEND_COMMAND_FEEDBACK
enum string SEND_COMMAND_FEEDBACK;
Undocumented in source.
name
string name;

Name of the rule. Same of the gamerule command's field in the game. The behaviours indicated in the following constants' descriptions is enabled or disabled.

unknown2
bool unknown2;
Undocumented in source.
value
bool value;

Indicates whether the game rule is enabled.

Meta