Exemple #1
0
 /// <summary>
 /// Changes or gets a gamerule
 /// </summary>
 /// <param name="gamerule">The gamerule to change or get</param>
 /// <param name="setValue">The value to change the gamerule to. Null returns the gamerule value instead</param>
 public void Gamerule(ID.BoolGamerule gamerule, bool?setValue)
 {
     ForFunction.AddCommand(new GameruleSetBoolCommand(gamerule, setValue));
 }
Exemple #2
0
 /// <summary>
 /// Intializes a new <see cref="GameruleSetBoolCommand"/>
 /// </summary>
 /// <param name="gamerule">The gamerule to change</param>
 /// <param name="changeTo">The value to change to. Leave null to not do a change.</param>
 public GameruleSetBoolCommand(ID.BoolGamerule gamerule, bool?changeTo)
 {
     Gamerule = gamerule;
     ChangeTo = changeTo;
 }