Uses of Class
org.bukkit.GameRule
Packages that use GameRule
Package
Description
The root package of the Bukkit API, contains generalized API classes.
-
Uses of GameRule in org.bukkit
Fields in org.bukkit declared as GameRuleModifier and TypeFieldDescriptionGameRule.ANNOUNCE_ADVANCEMENTSToggles the announcing of advancements.GameRule.BLOCK_EXPLOSION_DROP_DECAYWhether block explosions will destroy dropped items.GameRule.COMMAND_BLOCK_OUTPUTWhether command blocks should notify admins when they perform commands.GameRule.COMMAND_MODIFICATION_BLOCK_LIMITDetermines the maximum number of blocks which a command can modify.GameRule.DISABLE_ELYTRA_MOVEMENT_CHECKWhether the server should skip checking player speed when the player is wearing elytra.GameRule.DISABLE_RAIDSWhether pillager raids are enabled or not.GameRule.DO_DAYLIGHT_CYCLEWhether time progresses from the current moment.GameRule.DO_ENTITY_DROPSWhether entities that are not mobs should have drops.GameRule.DO_FIRE_TICKWhether fire should spread and naturally extinguish.GameRule.DO_IMMEDIATE_RESPAWNWhether clients will respawn immediately after death or not.GameRule.DO_INSOMNIAWhether phantoms will appear without sleeping or not.GameRule.DO_LIMITED_CRAFTINGWhether players should only be able to craft recipes they've unlocked first.GameRule.DO_MOB_LOOTWhether mobs should drop items.GameRule.DO_MOB_SPAWNINGWhether mobs should naturally spawn.GameRule.DO_PATROL_SPAWNINGWhether patrols should naturally spawn.GameRule.DO_TILE_DROPSWhether blocks should have drops.GameRule.DO_TRADER_SPAWNINGWhether traders should naturally spawn.GameRule.DO_VINES_SPREADWhether vines will spread.GameRule.DO_WARDEN_SPAWNINGWhether wardens should naturally spawn.GameRule.DO_WEATHER_CYCLEWhether the weather will change from the current moment.GameRule.DROWNING_DAMAGEWhether drowning damage is enabled or not.GameRule.FALL_DAMAGEWhether fall damage is enabled or not.GameRule.FIRE_DAMAGEWhether fire damage is enabled or not.GameRule.FORGIVE_DEAD_PLAYERSWhether mobs should cease being angry at a player once they die.GameRule.FREEZE_DAMAGEWhether freeze damage is enabled or not.GameRule.GLOBAL_SOUND_EVENTSWhether global level events such as ender dragon, wither, and completed end portal effects will propagate across the entire server.GameRule.KEEP_INVENTORYWhether the player should keep items in their inventory after death.GameRule.LAVA_SOURCE_CONVERSIONWhether lava blocks can convert into lava source blocks.GameRule.LOG_ADMIN_COMMANDSWhether to log admin commands to server log.GameRule.MAX_COMMAND_CHAIN_LENGTHDetermines the number at which the chain of command blocks act as a "chain."
This is the maximum amount of command blocks that can be activated in a single tick from a single chain.GameRule.MAX_ENTITY_CRAMMINGThe maximum number of other pushable entities a mob or player can push, before taking suffocation damage.GameRule.MOB_EXPLOSION_DROP_DECAY* Whether mob explosions will destroy dropped items.GameRule.MOB_GRIEFINGWhether mobs can pick up items or change blocks.GameRule.NATURAL_REGENERATIONWhether players can regenerate health naturally through their hunger bar.GameRule.PLAYERS_SLEEPING_PERCENTAGEThe percentage of online players which must be sleeping for the night to advance.GameRule.RANDOM_TICK_SPEEDHow often a random block tick occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick.GameRule.REDUCED_DEBUG_INFOWhether the debug screen shows all or reduced information.GameRule.SEND_COMMAND_FEEDBACKWhether the feedback from commands executed by a player should show up in chat.GameRule.SHOW_DEATH_MESSAGESWhether a message appears in chat when a player dies.GameRule.SNOW_ACCUMULATION_HEIGHTGameRule.SPAWN_RADIUSThe number of blocks outward from the world spawn coordinates that a player will spawn in when first joining a server or when dying without a spawnpoint.GameRule.SPECTATORS_GENERATE_CHUNKSWhether players in spectator mode can generate chunks.GameRule.TNT_EXPLOSION_DROP_DECAYWhether tnt explosions will destroy dropped items.GameRule.UNIVERSAL_ANGERWhether mobs will target all player entities once angered.GameRule.WATER_SOURCE_CONVERSIONWhether water blocks can convert into water source blocks.Methods in org.bukkit that return GameRuleModifier and TypeMethodDescriptionstatic GameRule<?>Get aGameRuleby its name.static GameRule<?>[]GameRule.values()Get an immutable collection ofGameRules.Methods in org.bukkit with parameters of type GameRuleModifier and TypeMethodDescription<T> TWorld.getGameRuleDefault(GameRule<T> rule) Get the default value for a givenGameRule.<T> TWorld.getGameRuleValue(GameRule<T> rule) Get the current value for a givenGameRule.<T> booleanWorld.setGameRule(GameRule<T> rule, T newValue) Set the givenGameRule's new value.