Add missing GameRules from 1.15.2
import org.spongepowered.api.entity.living.monster.Creeper;
import org.spongepowered.api.entity.living.monster.Enderman;
import org.spongepowered.api.entity.living.monster.Ghast;
+import org.spongepowered.api.entity.living.monster.Patroller;
import org.spongepowered.api.entity.living.monster.Phantom;
import org.spongepowered.api.entity.living.monster.Silverfish;
import org.spongepowered.api.entity.living.monster.boss.Wither;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.entity.living.player.gamemode.GameModes;
import org.spongepowered.api.entity.living.trader.Villager;
+import org.spongepowered.api.entity.living.trader.WanderingTrader;
import org.spongepowered.api.entity.vehicle.Boat;
import org.spongepowered.api.entity.vehicle.minecart.MinecartEntity;
import org.spongepowered.api.raid.Raid;
/**
* An enumeration of all the possible game rules in vanilla minecraft.
*/
-@SuppressWarnings("unchecked")
public final class GameRules {
// SORTFIELDS:ON
*/
public static final Supplier<GameRule<Boolean>> DO_MOB_SPAWNING = Sponge.getRegistry().getCatalogRegistry().provideSupplier(GameRule.class, "do_mob_spawning");
+ /**
+ * Whether {@link Patroller patrollers} will go out on patrol (typically in a {@link Raid}.
+ *
+ * <p>This is a boolean game rule, with a default value of {@code true}.</p>
+ */
+ public static final Supplier<GameRule<Boolean>> DO_PATROL_SPAWNING = Sponge.getRegistry().getCatalogRegistry().provideSupplier(GameRule.class, "do_patrol_spawning");
+
/**
* Whether blocks should have drops.
*
*/
public static final Supplier<GameRule<Boolean>> DO_TILE_DROPS = Sponge.getRegistry().getCatalogRegistry().provideSupplier(GameRule.class, "do_tile_drops");
+ /**
+ * Whether {@link WanderingTrader traders} will naturally spawn.
+ *
+ * <p>This is a boolean game rule, with a default value of {@code true}.</p>
+ */
+ public static final Supplier<GameRule<Boolean>> DO_TRADER_SPAWNING = Sponge.getRegistry().getCatalogRegistry().provideSupplier(GameRule.class, "do_trader_spawning");
+
/**
* Whether the weather will change.
*
