Uses of Class
org.bukkit.GameRule
| Package | Description |
|---|---|
| org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
-
Uses of GameRule in org.bukkit
Fields in org.bukkit declared as GameRule Modifier and Type Field Description static GameRule<Boolean>GameRule. ANNOUNCE_ADVANCEMENTSToggles the announcing of advancements.static GameRule<Boolean>GameRule. COMMAND_BLOCK_OUTPUTWhether command blocks should notify admins when they perform commands.static GameRule<Boolean>GameRule. DISABLE_ELYTRA_MOVEMENT_CHECKWhether the server should skip checking player speed when the player is wearing elytra.static GameRule<Boolean>GameRule. DISABLE_RAIDSWhether pillager raids are enabled or not.static GameRule<Boolean>GameRule. DO_DAYLIGHT_CYCLEWhether time progresses from the current moment.static GameRule<Boolean>GameRule. DO_ENTITY_DROPSWhether entities that are not mobs should have drops.static GameRule<Boolean>GameRule. DO_FIRE_TICKWhether fire should spread and naturally extinguish.static GameRule<Boolean>GameRule. DO_IMMEDIATE_RESPAWNWhether clients will respawn immediately after death or not.static GameRule<Boolean>GameRule. DO_INSOMNIAWhether phantoms will appear without sleeping or not.static GameRule<Boolean>GameRule. DO_LIMITED_CRAFTINGWhether players should only be able to craft recipes they've unlocked first.static GameRule<Boolean>GameRule. DO_MOB_LOOTWhether mobs should drop items.static GameRule<Boolean>GameRule. DO_MOB_SPAWNINGWhether mobs should naturally spawn.static GameRule<Boolean>GameRule. DO_PATROL_SPAWNINGWhether patrols should naturally spawn.static GameRule<Boolean>GameRule. DO_TILE_DROPSWhether blocks should have drops.static GameRule<Boolean>GameRule. DO_TRADER_SPAWNINGWhether traders should naturally spawn.static GameRule<Boolean>GameRule. DO_WEATHER_CYCLEWhether the weather will change from the current moment.static GameRule<Boolean>GameRule. DROWNING_DAMAGEWhether drowning damage is enabled or not.static GameRule<Boolean>GameRule. FALL_DAMAGEWhether fall damage is enabled or not.static GameRule<Boolean>GameRule. FIRE_DAMAGEWhether fire damage is enabled or not.static GameRule<Boolean>GameRule. FORGIVE_DEAD_PLAYERSWhether mobs should cease being angry at a player once they die.static GameRule<Boolean>GameRule. KEEP_INVENTORYWhether the player should keep items in their inventory after death.static GameRule<Boolean>GameRule. LOG_ADMIN_COMMANDSWhether to log admin commands to server log.static GameRule<Integer>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.static GameRule<Integer>GameRule. MAX_ENTITY_CRAMMINGThe maximum number of other pushable entities a mob or player can push, before taking suffocation damage.static GameRule<Boolean>GameRule. MOB_GRIEFINGWhether mobs can pick up items or change blocks.static GameRule<Boolean>GameRule. NATURAL_REGENERATIONWhether players can regenerate health naturally through their hunger bar.static GameRule<Integer>GameRule. RANDOM_TICK_SPEEDHow often a random block tick occurs (such as plant growth, leaf decay, etc.) per chunk section per game tick.static GameRule<Boolean>GameRule. REDUCED_DEBUG_INFOWhether the debug screen shows all or reduced information.static GameRule<Boolean>GameRule. SEND_COMMAND_FEEDBACKWhether the feedback from commands executed by a player should show up in chat.static GameRule<Boolean>GameRule. SHOW_DEATH_MESSAGESWhether a message appears in chat when a player dies.static GameRule<Integer>GameRule. 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.static GameRule<Boolean>GameRule. SPECTATORS_GENERATE_CHUNKSWhether players in spectator mode can generate chunks.static GameRule<Boolean>GameRule. UNIVERSAL_ANGERWhether mobs will target all player entities once angered.Methods in org.bukkit that return GameRule Modifier and Type Method Description static GameRule<?>GameRule. getByName(String rule)Get aGameRuleby its name.static GameRule<?>[]GameRule. values()Get an immutable collection ofGameRules.Methods in org.bukkit with parameters of type GameRule Modifier and Type Method Description <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.