YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.world.GameRules Class Reference

Public Member Functions

 GameRules ()
 
void addGameRule (String par1Str, String par2Str)
 
void setOrCreateGameRule (String par1Str, String par2Str)
 
String getGameRuleStringValue (String par1Str)
 
boolean getGameRuleBooleanValue (String par1Str)
 
NBTTagCompound writeGameRulesToNBT ()
 
void readGameRulesFromNBT (NBTTagCompound par1NBTTagCompound)
 
String[] getRules ()
 
boolean hasRule (String par1Str)
 

Constructor & Destructor Documentation

net.minecraft.world.GameRules.GameRules ( )

Member Function Documentation

void net.minecraft.world.GameRules.addGameRule ( String  par1Str,
String  par2Str 
)

Define a game rule and its default value.

boolean net.minecraft.world.GameRules.getGameRuleBooleanValue ( String  par1Str)

Gets the boolean Game Rule value.

String net.minecraft.world.GameRules.getGameRuleStringValue ( String  par1Str)

Gets the string Game Rule value.

String [] net.minecraft.world.GameRules.getRules ( )

Return the defined game rules.

boolean net.minecraft.world.GameRules.hasRule ( String  par1Str)

Return whether the specified game rule is defined.

void net.minecraft.world.GameRules.readGameRulesFromNBT ( NBTTagCompound  par1NBTTagCompound)

Set defined game rules from NBT.

void net.minecraft.world.GameRules.setOrCreateGameRule ( String  par1Str,
String  par2Str 
)
NBTTagCompound net.minecraft.world.GameRules.writeGameRulesToNBT ( )

Return the defined game rules as NBT.


The documentation for this class was generated from the following file: