Uses of Class
com.cryptomorin.xseries.XGameRule
Packages that use XGameRule
-
Uses of XGameRule in com.cryptomorin.xseries
Subclasses with type arguments of type XGameRule in com.cryptomorin.xseriesModifier and TypeClassDescriptionfinal classXGameRule<T>The BukkitGameRuleclass itself was added around Minecraft v1.13 so it's recommended to use theXGameRule.getValue(World)andXGameRule.setValue(World, Object)of this class instead of interacting withGameRuleobject directly or the methods provided inWorldas they've been changed.Fields in com.cryptomorin.xseries declared as XGameRuleModifier and TypeFieldDescriptionXGameRule.ADVANCE_TIMEWhether the daylight cycle and moon phases progress.XGameRule.ADVANCE_WEATHERWhether weather cycles (rain, thunder) progress naturally.XGameRule.ALLOW_ENTERING_NETHER_USING_PORTALSWhether players can enter the Nether using portals.XGameRule.ALLOW_FIRE_TICKS_AWAY_FROM_PLAYERDeprecated.XGameRule.BLOCK_DROPSWhether blocks drop items when broken (not by explosions or creative mode).XGameRule.BLOCK_EXPLOSION_DROP_DECAYWhether block explosion drops have decay (chance to not drop based on distance).XGameRule.COMMAND_BLOCK_OUTPUTWhether command blocks should notify admins when they perform commands.XGameRule.COMMAND_BLOCKS_WORKWhether command blocks are enabled and can execute commands.XGameRule.DO_FIRE_TICKDeprecated.XGameRule.DROWNING_DAMAGEWhether players take drowning damage.XGameRule.ELYTRA_MOVEMENT_CHECKWhether the server checks for elytra flight cheating (speed/movement validation).XGameRule.ENDER_PEARLS_VANISH_ON_DEATHWhether ender pearls disappear when the player dies.XGameRule.ENTITY_DROPSWhether non-mob entities (like boats, minecarts, items from item frames) drop items when broken.XGameRule.FALL_DAMAGEWhether players take fall damage.XGameRule.FIRE_DAMAGEWhether players take fire/lava damage.XGameRule.FIRE_SPREAD_RADIUS_AROUND_PLAYERRadius around players where fire spreads faster or is allowed.XGameRule.FORGIVE_DEAD_PLAYERSWhether angered neutral mobs forgive players who die and respawn.XGameRule.FREEZE_DAMAGEWhether players take freeze damage in powder snow.XGameRule.GAME_LOOP_FUNCTIONDeprecated.XGameRule.GLOBAL_SOUND_EVENTSWhether certain sound events are heard globally by all players.XGameRule.IMMEDIATE_RESPAWNWhether players respawn immediately without the death screen.XGameRule.KEEP_INVENTORYWhether players keep their inventory and experience after death.XGameRule.LAVA_SOURCE_CONVERSIONWhether lava source blocks convert to flowing lava under certain conditions.XGameRule.LIMITED_CRAFTINGWhether crafting recipes require the exact arrangement as discovered in the recipe book.XGameRule.LOCATOR_BARWhether the locator bar (on maps?)XGameRule.LOG_ADMIN_COMMANDSWhether admin commands (like /give, /tp) are logged to the server log.XGameRule.MAX_BLOCK_MODIFICATIONSMaximum number of block modifications allowed in a single command (anti-grief).XGameRule.MAX_COMMAND_FORKSMaximum number of command forks allowed.XGameRule.MAX_COMMAND_SEQUENCE_LENGTHMaximum length of a command chain (function or command block chain).XGameRule.MAX_ENTITY_CRAMMINGMaximum number of entities that can be crammed in one block before taking suffocation damage.XGameRule.MAX_MINECART_SPEEDMaximum speed of minecarts.XGameRule.MAX_SNOW_ACCUMULATION_HEIGHTMaximum height snow can accumulate in a single block.XGameRule.MOB_DROPSWhether mobs drop their loot (items and experience) when killed.XGameRule.MOB_EXPLOSION_DROP_DECAYWhether mob (creeper/ghast) explosion drops have decay.XGameRule.MOB_GRIEFINGWhether mobs can grief the world (e.g., creepers explode blocks, endermen pick up blocks).XGameRule.NATURAL_HEALTH_REGENERATIONWhether players naturally regenerate health when hunger is full.XGameRule.PLAYER_MOVEMENT_CHECKWhether the server performs player movement validation checks.XGameRule.PLAYERS_NETHER_PORTAL_CREATIVE_DELAYDelay (in ticks) for players in creative mode entering Nether portals.XGameRule.PLAYERS_NETHER_PORTAL_DEFAULT_DELAYDefault delay (in ticks) for players entering Nether portals in survival/adventure.XGameRule.PLAYERS_SLEEPING_PERCENTAGEPercentage of players that must sleep to skip the night.XGameRule.PROJECTILES_CAN_BREAK_BLOCKSWhether projectiles (arrows, tridents, etc.) can break certain blocks.XGameRule.PVPWhether PvP (player vs player damage) is enabled.XGameRule.RAIDSWhether raids can occur (inverted: true disables raids).XGameRule.RANDOM_TICK_SPEEDControls the rate of random block ticks (crop growth, leaf decay, etc.).XGameRule.REDUCED_DEBUG_INFOWhether reduced debug screen info is shown (hides coordinates, etc.).XGameRule.RESPAWN_RADIUSThe radius around world spawn where players respawn if no bed.XGameRule.SEND_COMMAND_FEEDBACKWhether command feedback (success/failure messages) is sent to the player.XGameRule.SHOW_ADVANCEMENT_MESSAGESWhether advancement completion messages are announced in chat.XGameRule.SHOW_DEATH_MESSAGESWhether death messages are shown in chat.XGameRule.SPAWN_CHUNK_RADIUSDeprecated.XGameRule.SPAWN_MOBSWhether mobs spawn naturally.XGameRule.SPAWN_MONSTERSWhether hostile monsters spawn naturally.XGameRule.SPAWN_PATROLSWhether pillager patrols spawn naturally.XGameRule.SPAWN_PHANTOMSWhether phantoms spawn from insomnia.XGameRule.SPAWN_WANDERING_TRADERSWhether wandering traders spawn naturally.XGameRule.SPAWN_WARDENSWhether wardens spawn naturally in ancient cities.XGameRule.SPAWNER_BLOCKS_WORKWhether monster spawners work and spawn mobs.XGameRule.SPECTATORS_GENERATE_CHUNKSWhether spectators generate new chunks when moving around.XGameRule.SPREAD_VINESWhether vines spread to adjacent blocks.XGameRule.TNT_EXPLODESWhether primed TNT explodes.XGameRule.TNT_EXPLOSION_DROP_DECAYWhether TNT explosion drops have decay.XGameRule.UNIVERSAL_ANGERWhether angered neutral mobs attack any nearby player (universal anger).XGameRule.WATER_SOURCE_CONVERSIONWhether water source blocks convert to flowing water under certain conditions.Methods in com.cryptomorin.xseries that return XGameRuleModifier and TypeMethodDescriptionstatic <T> @NotNull XGameRule<T> XGameRule.of(@NotNull org.bukkit.GameRule<T> bukkit) Methods in com.cryptomorin.xseries that return types with arguments of type XGameRule