public class GameRules
extends java.lang.Object
Constructor and Description |
---|
GameRules() |
Modifier and Type | Method and Description |
---|---|
void |
addGameRule(java.lang.String p_82769_1_,
java.lang.String p_82769_2_) |
boolean |
getGameRuleBooleanValue(java.lang.String p_82766_1_) |
java.lang.String |
getGameRuleStringValue(java.lang.String p_82767_1_) |
java.lang.String[] |
getRules() |
boolean |
hasRule(java.lang.String p_82765_1_) |
void |
readGameRulesFromNBT(NBTTagCompound p_82768_1_) |
void |
setOrCreateGameRule(java.lang.String p_82764_1_,
java.lang.String p_82764_2_) |
NBTTagCompound |
writeGameRulesToNBT() |
public void addGameRule(java.lang.String p_82769_1_, java.lang.String p_82769_2_)
public void setOrCreateGameRule(java.lang.String p_82764_1_, java.lang.String p_82764_2_)
public java.lang.String getGameRuleStringValue(java.lang.String p_82767_1_)
public boolean getGameRuleBooleanValue(java.lang.String p_82766_1_)
public NBTTagCompound writeGameRulesToNBT()
public void readGameRulesFromNBT(NBTTagCompound p_82768_1_)
public java.lang.String[] getRules()
public boolean hasRule(java.lang.String p_82765_1_)