Uses of Interface
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.ADVANCE_TIMEWhether time progresses from the current moment.GameRule.ADVANCE_WEATHERWhether the weather will change from the current moment.GameRule.ALLOW_ENTERING_NETHER_USING_PORTALSWhether nether portals can be used to enter the nether.GameRule.BLOCK_DROPSWhether blocks should have drops.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_BLOCKS_WORKWhether command blocks are enabled.GameRule.DROWNING_DAMAGEWhether drowning damage is enabled or not.GameRule.ELYTRA_MOVEMENT_CHECKWhether the server should skip checking player speed when the player is wearing elytra.GameRule.ENDER_PEARLS_VANISH_ON_DEATHWhether ender pearls will vanish on player death.GameRule.ENTITY_DROPSWhether entities that are not mobs should have drops.GameRule.FALL_DAMAGEWhether fall damage is enabled or not.GameRule.FIRE_DAMAGEWhether fire damage is enabled or not.GameRule.FIRE_SPREAD_RADIUS_AROUND_PLAYERThe radius in blocks that fire can spread around a player (0 to disable spread, -1 to allow spread without players).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.IMMEDIATE_RESPAWNWhether clients will respawn immediately after death or not.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.LIMITED_CRAFTINGWhether players should only be able to craft recipes they've unlocked first.GameRule.LOCATOR_BARWhether the locator bar is enabled.GameRule.LOG_ADMIN_COMMANDSWhether to log admin commands to server log.GameRule.MAX_BLOCK_MODIFICATIONSDetermines the maximum number of blocks which a command can modify.GameRule.MAX_COMMAND_FORKSDetermines the number of different commands/functions which execute commands can fork into.GameRule.MAX_COMMAND_SEQUENCE_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.MAX_MINECART_SPEEDThe maximum speed of minecarts (when the new movement algorithm is enabled).GameRule.MAX_SNOW_ACCUMULATION_HEIGHTGameRule.MOB_DROPSWhether mobs should drop items.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_HEALTH_REGENERATIONWhether players can regenerate health naturally through their hunger bar.GameRule.PLAYER_MOVEMENT_CHECKWhether the server should skip checking player speed.GameRule.PLAYERS_NETHER_PORTAL_CREATIVE_DELAYThe amount of time a player in creative mode must stand in a nether portal before the portal activates.GameRule.PLAYERS_NETHER_PORTAL_DEFAULT_DELAYThe amount of time a player must stand in a nether portal before the portal activates.GameRule.PLAYERS_SLEEPING_PERCENTAGEThe percentage of online players which must be sleeping for the night to advance.GameRule.PROJECTILES_CAN_BREAK_BLOCKSWhether projectiles can break blocks.GameRule.PVPWhether PvP is enabled.GameRule.RAIDSWhether pillager raids are enabled or not.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.RESPAWN_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.SEND_COMMAND_FEEDBACKWhether the feedback from commands executed by a player should show up in chat.GameRule.SHOW_ADVANCEMENT_MESSAGESToggles the announcing of advancements.GameRule.SHOW_DEATH_MESSAGESWhether a message appears in chat when a player dies.GameRule.SPAWN_MOBSWhether mobs should naturally spawn.GameRule.SPAWN_MONSTERSWhether monsters will spawn.GameRule.SPAWN_PATROLSWhether patrols should naturally spawn.GameRule.SPAWN_PHANTOMSWhether phantoms will appear without sleeping or not.GameRule.SPAWN_WANDERING_TRADERSWhether traders should naturally spawn.GameRule.SPAWN_WARDENSWhether wardens should naturally spawn.GameRule.SPAWNER_BLOCKS_WORKWhether spawner blocks are enabled.GameRule.SPECTATORS_GENERATE_CHUNKSWhether players in spectator mode can generate chunks.GameRule.SPREAD_VINESWhether vines will spread.GameRule.TNT_EXPLODESWhether TNT explodes.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.Fields in org.bukkit with type parameters of type GameRuleMethods in org.bukkit that return GameRuleModifier and TypeMethodDescriptionstatic GameRule<?> Deprecated.static GameRule<?>[]GameRule.values()Deprecated.useIterable.iterator().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.
Registry.get(NamespacedKey)instead.