Package net.minecraft.world.rule
Class GameRules
java.lang.Object
net.minecraft.world.rule.GameRules
- Mappings:
Namespace Name named net/minecraft/world/rule/GameRulesintermediary net/minecraft/class_1928official esw
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionAwhich regulates whether a player's advancements should be announced in chat.invalid reference
game rule
Awhich regulates whether raids should occur.invalid reference
game rule
Awhich regulates whether a player should immediately respawn upon death.invalid reference
game rule
Awhich regulates whether mobs can modify the world.invalid reference
game rule
Awhich regulates whether mobs should drop loot on death.invalid reference
game rule
Awhich regulates whether mobs can spawn naturally.invalid reference
game rule
Awhich regulates whether blocks should drop their items when broken.invalid reference
game rule
Awhich regulates whether player inventories should be persist through respawning.invalid reference
game rule
Awhich regulates the number of entities that can be crammed into a block space before they incur cramming damage.invalid reference
game rule
Awhich regulates whether clients' debug HUDs show reduced information.invalid reference
game rule
private final ServerGameRules -
Constructor Summary
ConstructorsConstructorDescriptionGameRules(FeatureSet enabledFeatures) GameRules(FeatureSet enabledFeatures, ServerGameRules rules) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GameRuleVisitor visitor) Make the visitor visit all registered game rules.voidcopyFrom(GameRules rules, @Nullable MinecraftServer server) voidcopyFrom(ServerGameRules rules, @Nullable MinecraftServer server) private <T> voidcopyFrom(ServerGameRules rules, GameRule<T> rule, @Nullable MinecraftServer server) static com.mojang.serialization.Codec<GameRules> createCodec(FeatureSet featureSet) <T> StringgetRuleValueName(GameRule<T> rule) <T> Tprivate static <T> GameRule<T> register(String name, GameRuleCategory category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, com.mojang.serialization.Codec<T> codec, T defaultValue, FeatureSet requiredFeatures, GameRules.Acceptor<T> acceptor, ToIntFunction<T> commandResultSupplier) static GameRule<?> registerAndGetDefault(Registry<GameRule<?>> registry) registerBooleanRule(String name, GameRuleCategory category, boolean defaultValue) registerIntRule(String name, GameRuleCategory category, int defaultValue, int minValue) registerIntRule(String name, GameRuleCategory category, int defaultValue, int minValue, int maxValue) registerIntRule(String name, GameRuleCategory category, int defaultValue, int minValue, int maxValue, FeatureSet requiredFeatures) <T> voidsetValue(GameRule<T> rule, T value, @Nullable MinecraftServer server) withEnabledFeatures(FeatureSet enabledFeatures)
-
Field Details
-
ADVANCE_TIME
- Mappings:
Namespace Name Mixin selector named ADVANCE_TIMELnet/minecraft/world/rule/GameRules;ADVANCE_TIME:Lnet/minecraft/world/rule/GameRule;intermediary field_19396Lnet/minecraft/class_1928;field_19396:Lnet/minecraft/class_12279;official aLesw;a:Lesr;
-
ADVANCE_WEATHER
- Mappings:
Namespace Name Mixin selector named ADVANCE_WEATHERLnet/minecraft/world/rule/GameRules;ADVANCE_WEATHER:Lnet/minecraft/world/rule/GameRule;intermediary field_19406Lnet/minecraft/class_1928;field_19406:Lnet/minecraft/class_12279;official bLesw;b:Lesr;
-
ALLOW_ENTERING_NETHER_USING_PORTALS
- Mappings:
Namespace Name Mixin selector named ALLOW_ENTERING_NETHER_USING_PORTALSLnet/minecraft/world/rule/GameRules;ALLOW_ENTERING_NETHER_USING_PORTALS:Lnet/minecraft/world/rule/GameRule;intermediary field_62435Lnet/minecraft/class_1928;field_62435:Lnet/minecraft/class_12279;official cLesw;c:Lesr;
-
DO_TILE_DROPS
Awhich regulates whether blocks should drop their items when broken.invalid reference
game rule
- Mappings:
Namespace Name Mixin selector named DO_TILE_DROPSLnet/minecraft/world/rule/GameRules;DO_TILE_DROPS:Lnet/minecraft/world/rule/GameRule;intermediary field_19392Lnet/minecraft/class_1928;field_19392:Lnet/minecraft/class_12279;official dLesw;d:Lesr;
-
BLOCK_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named BLOCK_EXPLOSION_DROP_DECAYLnet/minecraft/world/rule/GameRules;BLOCK_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/rule/GameRule;intermediary field_40880Lnet/minecraft/class_1928;field_40880:Lnet/minecraft/class_12279;official eLesw;e:Lesr;
-
COMMAND_BLOCKS_WORK
- Mappings:
Namespace Name Mixin selector named COMMAND_BLOCKS_WORKLnet/minecraft/world/rule/GameRules;COMMAND_BLOCKS_WORK:Lnet/minecraft/world/rule/GameRule;intermediary field_62916Lnet/minecraft/class_1928;field_62916:Lnet/minecraft/class_12279;official fLesw;f:Lesr;
-
COMMAND_BLOCK_OUTPUT
- Mappings:
Namespace Name Mixin selector named COMMAND_BLOCK_OUTPUTLnet/minecraft/world/rule/GameRules;COMMAND_BLOCK_OUTPUT:Lnet/minecraft/world/rule/GameRule;intermediary field_19394Lnet/minecraft/class_1928;field_19394:Lnet/minecraft/class_12279;official gLesw;g:Lesr;
-
DROWNING_DAMAGE
- Mappings:
Namespace Name Mixin selector named DROWNING_DAMAGELnet/minecraft/world/rule/GameRules;DROWNING_DAMAGE:Lnet/minecraft/world/rule/GameRule;intermediary field_20634Lnet/minecraft/class_1928;field_20634:Lnet/minecraft/class_12279;official hLesw;h:Lesr;
-
ELYTRA_MOVEMENT_CHECK
- Mappings:
Namespace Name Mixin selector named ELYTRA_MOVEMENT_CHECKLnet/minecraft/world/rule/GameRules;ELYTRA_MOVEMENT_CHECK:Lnet/minecraft/world/rule/GameRule;intermediary field_19404Lnet/minecraft/class_1928;field_19404:Lnet/minecraft/class_12279;official iLesw;i:Lesr;
-
ENDER_PEARLS_VANISH_ON_DEATH
- Mappings:
Namespace Name Mixin selector named ENDER_PEARLS_VANISH_ON_DEATHLnet/minecraft/world/rule/GameRules;ENDER_PEARLS_VANISH_ON_DEATH:Lnet/minecraft/world/rule/GameRule;intermediary field_46176Lnet/minecraft/class_1928;field_46176:Lnet/minecraft/class_12279;official jLesw;j:Lesr;
-
ENTITY_DROPS
- Mappings:
Namespace Name Mixin selector named ENTITY_DROPSLnet/minecraft/world/rule/GameRules;ENTITY_DROPS:Lnet/minecraft/world/rule/GameRule;intermediary field_19393Lnet/minecraft/class_1928;field_19393:Lnet/minecraft/class_12279;official kLesw;k:Lesr;
-
FALL_DAMAGE
- Mappings:
Namespace Name Mixin selector named FALL_DAMAGELnet/minecraft/world/rule/GameRules;FALL_DAMAGE:Lnet/minecraft/world/rule/GameRule;intermediary field_20635Lnet/minecraft/class_1928;field_20635:Lnet/minecraft/class_12279;official lLesw;l:Lesr;
-
FIRE_DAMAGE
- Mappings:
Namespace Name Mixin selector named FIRE_DAMAGELnet/minecraft/world/rule/GameRules;FIRE_DAMAGE:Lnet/minecraft/world/rule/GameRule;intermediary field_20636Lnet/minecraft/class_1928;field_20636:Lnet/minecraft/class_12279;official mLesw;m:Lesr;
-
FIRE_SPREAD_RADIUS_AROUND_PLAYER
- Mappings:
Namespace Name Mixin selector named FIRE_SPREAD_RADIUS_AROUND_PLAYERLnet/minecraft/world/rule/GameRules;FIRE_SPREAD_RADIUS_AROUND_PLAYER:Lnet/minecraft/world/rule/GameRule;intermediary field_56559Lnet/minecraft/class_1928;field_56559:Lnet/minecraft/class_12279;official nLesw;n:Lesr;
-
FORGIVE_DEAD_PLAYERS
- Mappings:
Namespace Name Mixin selector named FORGIVE_DEAD_PLAYERSLnet/minecraft/world/rule/GameRules;FORGIVE_DEAD_PLAYERS:Lnet/minecraft/world/rule/GameRule;intermediary field_25401Lnet/minecraft/class_1928;field_25401:Lnet/minecraft/class_12279;official oLesw;o:Lesr;
-
FREEZE_DAMAGE
- Mappings:
Namespace Name Mixin selector named FREEZE_DAMAGELnet/minecraft/world/rule/GameRules;FREEZE_DAMAGE:Lnet/minecraft/world/rule/GameRule;intermediary field_28044Lnet/minecraft/class_1928;field_28044:Lnet/minecraft/class_12279;official pLesw;p:Lesr;
-
GLOBAL_SOUND_EVENTS
- Mappings:
Namespace Name Mixin selector named GLOBAL_SOUND_EVENTSLnet/minecraft/world/rule/GameRules;GLOBAL_SOUND_EVENTS:Lnet/minecraft/world/rule/GameRule;intermediary field_40886Lnet/minecraft/class_1928;field_40886:Lnet/minecraft/class_12279;official qLesw;q:Lesr;
-
DO_IMMEDIATE_RESPAWN
Awhich regulates whether a player should immediately respawn upon death.invalid reference
game rule
- Mappings:
Namespace Name Mixin selector named DO_IMMEDIATE_RESPAWNLnet/minecraft/world/rule/GameRules;DO_IMMEDIATE_RESPAWN:Lnet/minecraft/world/rule/GameRule;intermediary field_20638Lnet/minecraft/class_1928;field_20638:Lnet/minecraft/class_12279;official rLesw;r:Lesr;
-
KEEP_INVENTORY
Awhich regulates whether player inventories should be persist through respawning.invalid reference
game rule
- Mappings:
Namespace Name Mixin selector named KEEP_INVENTORYLnet/minecraft/world/rule/GameRules;KEEP_INVENTORY:Lnet/minecraft/world/rule/GameRule;intermediary field_19389Lnet/minecraft/class_1928;field_19389:Lnet/minecraft/class_12279;official sLesw;s:Lesr;
-
LAVA_SOURCE_CONVERSION
- Mappings:
Namespace Name Mixin selector named LAVA_SOURCE_CONVERSIONLnet/minecraft/world/rule/GameRules;LAVA_SOURCE_CONVERSION:Lnet/minecraft/world/rule/GameRule;intermediary field_40885Lnet/minecraft/class_1928;field_40885:Lnet/minecraft/class_12279;official tLesw;t:Lesr;
-
LIMITED_CRAFTING
- Mappings:
Namespace Name Mixin selector named LIMITED_CRAFTINGLnet/minecraft/world/rule/GameRules;LIMITED_CRAFTING:Lnet/minecraft/world/rule/GameRule;intermediary field_19407Lnet/minecraft/class_1928;field_19407:Lnet/minecraft/class_12279;official uLesw;u:Lesr;
-
LOCATOR_BAR
- Mappings:
Namespace Name Mixin selector named LOCATOR_BARLnet/minecraft/world/rule/GameRules;LOCATOR_BAR:Lnet/minecraft/world/rule/GameRule;intermediary field_59751Lnet/minecraft/class_1928;field_59751:Lnet/minecraft/class_12279;official vLesw;v:Lesr;
-
LOG_ADMIN_COMMANDS
- Mappings:
Namespace Name Mixin selector named LOG_ADMIN_COMMANDSLnet/minecraft/world/rule/GameRules;LOG_ADMIN_COMMANDS:Lnet/minecraft/world/rule/GameRule;intermediary field_19397Lnet/minecraft/class_1928;field_19397:Lnet/minecraft/class_12279;official wLesw;w:Lesr;
-
MAX_BLOCK_MODIFICATIONS
- Mappings:
Namespace Name Mixin selector named MAX_BLOCK_MODIFICATIONSLnet/minecraft/world/rule/GameRules;MAX_BLOCK_MODIFICATIONS:Lnet/minecraft/world/rule/GameRule;intermediary field_41766Lnet/minecraft/class_1928;field_41766:Lnet/minecraft/class_12279;official xLesw;x:Lesr;
-
MAX_COMMAND_FORKS
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_FORKSLnet/minecraft/world/rule/GameRules;MAX_COMMAND_FORKS:Lnet/minecraft/world/rule/GameRule;intermediary field_46658Lnet/minecraft/class_1928;field_46658:Lnet/minecraft/class_12279;official yLesw;y:Lesr;
-
MAX_COMMAND_SEQUENCE_LENGTH
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_SEQUENCE_LENGTHLnet/minecraft/world/rule/GameRules;MAX_COMMAND_SEQUENCE_LENGTH:Lnet/minecraft/world/rule/GameRule;intermediary field_19408Lnet/minecraft/class_1928;field_19408:Lnet/minecraft/class_12279;official zLesw;z:Lesr;
-
MAX_ENTITY_CRAMMING
Awhich regulates the number of entities that can be crammed into a block space before they incur cramming damage.invalid reference
game rule
- Mappings:
Namespace Name Mixin selector named MAX_ENTITY_CRAMMINGLnet/minecraft/world/rule/GameRules;MAX_ENTITY_CRAMMING:Lnet/minecraft/world/rule/GameRule;intermediary field_19405Lnet/minecraft/class_1928;field_19405:Lnet/minecraft/class_12279;official ALesw;A:Lesr;
-
MAX_MINECART_SPEED
- Mappings:
Namespace Name Mixin selector named MAX_MINECART_SPEEDLnet/minecraft/world/rule/GameRules;MAX_MINECART_SPEED:Lnet/minecraft/world/rule/GameRule;intermediary field_52614Lnet/minecraft/class_1928;field_52614:Lnet/minecraft/class_12279;official BLesw;B:Lesr;
-
MAX_SNOW_ACCUMULATION_HEIGHT
- Mappings:
Namespace Name Mixin selector named MAX_SNOW_ACCUMULATION_HEIGHTLnet/minecraft/world/rule/GameRules;MAX_SNOW_ACCUMULATION_HEIGHT:Lnet/minecraft/world/rule/GameRule;intermediary field_40883Lnet/minecraft/class_1928;field_40883:Lnet/minecraft/class_12279;official CLesw;C:Lesr;
-
DO_MOB_LOOT
Awhich regulates whether mobs should drop loot on death.invalid reference
game rule
- Mappings:
Namespace Name Mixin selector named DO_MOB_LOOTLnet/minecraft/world/rule/GameRules;DO_MOB_LOOT:Lnet/minecraft/world/rule/GameRule;intermediary field_19391Lnet/minecraft/class_1928;field_19391:Lnet/minecraft/class_12279;official DLesw;D:Lesr;
-
MOB_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named MOB_EXPLOSION_DROP_DECAYLnet/minecraft/world/rule/GameRules;MOB_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/rule/GameRule;intermediary field_40881Lnet/minecraft/class_1928;field_40881:Lnet/minecraft/class_12279;official ELesw;E:Lesr;
-
DO_MOB_GRIEFING
Awhich regulates whether mobs can modify the world.invalid reference
game rule
Generally one is expected to test this rule before an entity modifies the world.
In vanilla, this includes:
- Whether creeper explosions destroy blocks
- Whether a zombie can break down a door
- Whether a wither killing an entity will place or drop a wither rose
- Mappings:
Namespace Name Mixin selector named DO_MOB_GRIEFINGLnet/minecraft/world/rule/GameRules;DO_MOB_GRIEFING:Lnet/minecraft/world/rule/GameRule;intermediary field_19388Lnet/minecraft/class_1928;field_19388:Lnet/minecraft/class_12279;official FLesw;F:Lesr;
-
NATURAL_HEALTH_REGENERATION
- Mappings:
Namespace Name Mixin selector named NATURAL_HEALTH_REGENERATIONLnet/minecraft/world/rule/GameRules;NATURAL_HEALTH_REGENERATION:Lnet/minecraft/world/rule/GameRule;intermediary field_19395Lnet/minecraft/class_1928;field_19395:Lnet/minecraft/class_12279;official GLesw;G:Lesr;
-
PLAYER_MOVEMENT_CHECK
- Mappings:
Namespace Name Mixin selector named PLAYER_MOVEMENT_CHECKLnet/minecraft/world/rule/GameRules;PLAYER_MOVEMENT_CHECK:Lnet/minecraft/world/rule/GameRule;intermediary field_54909Lnet/minecraft/class_1928;field_54909:Lnet/minecraft/class_12279;official HLesw;H:Lesr;
-
PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
- Mappings:
Namespace Name Mixin selector named PLAYERS_NETHER_PORTAL_CREATIVE_DELAYLnet/minecraft/world/rule/GameRules;PLAYERS_NETHER_PORTAL_CREATIVE_DELAY:Lnet/minecraft/world/rule/GameRule;intermediary field_46795Lnet/minecraft/class_1928;field_46795:Lnet/minecraft/class_12279;official ILesw;I:Lesr;
-
PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
- Mappings:
Namespace Name Mixin selector named PLAYERS_NETHER_PORTAL_DEFAULT_DELAYLnet/minecraft/world/rule/GameRules;PLAYERS_NETHER_PORTAL_DEFAULT_DELAY:Lnet/minecraft/world/rule/GameRule;intermediary field_46794Lnet/minecraft/class_1928;field_46794:Lnet/minecraft/class_12279;official JLesw;J:Lesr;
-
PLAYERS_SLEEPING_PERCENTAGE
- Mappings:
Namespace Name Mixin selector named PLAYERS_SLEEPING_PERCENTAGELnet/minecraft/world/rule/GameRules;PLAYERS_SLEEPING_PERCENTAGE:Lnet/minecraft/world/rule/GameRule;intermediary field_28357Lnet/minecraft/class_1928;field_28357:Lnet/minecraft/class_12279;official KLesw;K:Lesr;
-
PROJECTILES_CAN_BREAK_BLOCKS
- Mappings:
Namespace Name Mixin selector named PROJECTILES_CAN_BREAK_BLOCKSLnet/minecraft/world/rule/GameRules;PROJECTILES_CAN_BREAK_BLOCKS:Lnet/minecraft/world/rule/GameRule;intermediary field_46796Lnet/minecraft/class_1928;field_46796:Lnet/minecraft/class_12279;official LLesw;L:Lesr;
-
PVP
- Mappings:
Namespace Name Mixin selector named PVPLnet/minecraft/world/rule/GameRules;PVP:Lnet/minecraft/world/rule/GameRule;intermediary field_62434Lnet/minecraft/class_1928;field_62434:Lnet/minecraft/class_12279;official MLesw;M:Lesr;
-
DISABLE_RAIDS
Awhich regulates whether raids should occur.invalid reference
game rule
If this rule is set to
truewhile raids are occurring, the raids will be stopped.- Mappings:
Namespace Name Mixin selector named DISABLE_RAIDSLnet/minecraft/world/rule/GameRules;DISABLE_RAIDS:Lnet/minecraft/world/rule/GameRule;intermediary field_19422Lnet/minecraft/class_1928;field_19422:Lnet/minecraft/class_12279;official NLesw;N:Lesr;
-
RANDOM_TICK_SPEED
- Mappings:
Namespace Name Mixin selector named RANDOM_TICK_SPEEDLnet/minecraft/world/rule/GameRules;RANDOM_TICK_SPEED:Lnet/minecraft/world/rule/GameRule;intermediary field_19399Lnet/minecraft/class_1928;field_19399:Lnet/minecraft/class_12279;official OLesw;O:Lesr;
-
REDUCED_DEBUG_INFO
Awhich regulates whether clients' debug HUDs show reduced information.invalid reference
game rule
When the value of this rule is changed, all connected clients will be notified to update their display. In vanilla, this includes the visibility of coordinates on the clients' debug HUDs.
- Mappings:
Namespace Name Mixin selector named REDUCED_DEBUG_INFOLnet/minecraft/world/rule/GameRules;REDUCED_DEBUG_INFO:Lnet/minecraft/world/rule/GameRule;intermediary field_19401Lnet/minecraft/class_1928;field_19401:Lnet/minecraft/class_12279;official PLesw;P:Lesr;
-
RESPAWN_RADIUS
- Mappings:
Namespace Name Mixin selector named RESPAWN_RADIUSLnet/minecraft/world/rule/GameRules;RESPAWN_RADIUS:Lnet/minecraft/world/rule/GameRule;intermediary field_19403Lnet/minecraft/class_1928;field_19403:Lnet/minecraft/class_12279;official QLesw;Q:Lesr;
-
SEND_COMMAND_FEEDBACK
- Mappings:
Namespace Name Mixin selector named SEND_COMMAND_FEEDBACKLnet/minecraft/world/rule/GameRules;SEND_COMMAND_FEEDBACK:Lnet/minecraft/world/rule/GameRule;intermediary field_19400Lnet/minecraft/class_1928;field_19400:Lnet/minecraft/class_12279;official RLesw;R:Lesr;
-
ANNOUNCE_ADVANCEMENTS
Awhich regulates whether a player's advancements should be announced in chat.invalid reference
game rule
- Mappings:
Namespace Name Mixin selector named ANNOUNCE_ADVANCEMENTSLnet/minecraft/world/rule/GameRules;ANNOUNCE_ADVANCEMENTS:Lnet/minecraft/world/rule/GameRule;intermediary field_19409Lnet/minecraft/class_1928;field_19409:Lnet/minecraft/class_12279;official SLesw;S:Lesr;
-
SHOW_DEATH_MESSAGES
- Mappings:
Namespace Name Mixin selector named SHOW_DEATH_MESSAGESLnet/minecraft/world/rule/GameRules;SHOW_DEATH_MESSAGES:Lnet/minecraft/world/rule/GameRule;intermediary field_19398Lnet/minecraft/class_1928;field_19398:Lnet/minecraft/class_12279;official TLesw;T:Lesr;
-
SPAWNER_BLOCKS_WORK
- Mappings:
Namespace Name Mixin selector named SPAWNER_BLOCKS_WORKLnet/minecraft/world/rule/GameRules;SPAWNER_BLOCKS_WORK:Lnet/minecraft/world/rule/GameRule;intermediary field_62917Lnet/minecraft/class_1928;field_62917:Lnet/minecraft/class_12279;official ULesw;U:Lesr;
-
DO_MOB_SPAWNING
Awhich regulates whether mobs can spawn naturally.invalid reference
game rule
- Mappings:
Namespace Name Mixin selector named DO_MOB_SPAWNINGLnet/minecraft/world/rule/GameRules;DO_MOB_SPAWNING:Lnet/minecraft/world/rule/GameRule;intermediary field_19390Lnet/minecraft/class_1928;field_19390:Lnet/minecraft/class_12279;official VLesw;V:Lesr;
-
SPAWN_MONSTERS
- Mappings:
Namespace Name Mixin selector named SPAWN_MONSTERSLnet/minecraft/world/rule/GameRules;SPAWN_MONSTERS:Lnet/minecraft/world/rule/GameRule;intermediary field_62436Lnet/minecraft/class_1928;field_62436:Lnet/minecraft/class_12279;official WLesw;W:Lesr;
-
SPAWN_PATROLS
- Mappings:
Namespace Name Mixin selector named SPAWN_PATROLSLnet/minecraft/world/rule/GameRules;SPAWN_PATROLS:Lnet/minecraft/world/rule/GameRule;intermediary field_21831Lnet/minecraft/class_1928;field_21831:Lnet/minecraft/class_12279;official XLesw;X:Lesr;
-
SPAWN_PHANTOMS
- Mappings:
Namespace Name Mixin selector named SPAWN_PHANTOMSLnet/minecraft/world/rule/GameRules;SPAWN_PHANTOMS:Lnet/minecraft/world/rule/GameRule;intermediary field_20637Lnet/minecraft/class_1928;field_20637:Lnet/minecraft/class_12279;official YLesw;Y:Lesr;
-
SPAWN_WANDERING_TRADERS
- Mappings:
Namespace Name Mixin selector named SPAWN_WANDERING_TRADERSLnet/minecraft/world/rule/GameRules;SPAWN_WANDERING_TRADERS:Lnet/minecraft/world/rule/GameRule;intermediary field_21832Lnet/minecraft/class_1928;field_21832:Lnet/minecraft/class_12279;official ZLesw;Z:Lesr;
-
SPAWN_WARDENS
- Mappings:
Namespace Name Mixin selector named SPAWN_WARDENSLnet/minecraft/world/rule/GameRules;SPAWN_WARDENS:Lnet/minecraft/world/rule/GameRule;intermediary field_38975Lnet/minecraft/class_1928;field_38975:Lnet/minecraft/class_12279;official aaLesw;aa:Lesr;
-
SPECTATORS_GENERATE_CHUNKS
- Mappings:
Namespace Name Mixin selector named SPECTATORS_GENERATE_CHUNKSLnet/minecraft/world/rule/GameRules;SPECTATORS_GENERATE_CHUNKS:Lnet/minecraft/world/rule/GameRule;intermediary field_19402Lnet/minecraft/class_1928;field_19402:Lnet/minecraft/class_12279;official abLesw;ab:Lesr;
-
SPREAD_VINES
- Mappings:
Namespace Name Mixin selector named SPREAD_VINESLnet/minecraft/world/rule/GameRules;SPREAD_VINES:Lnet/minecraft/world/rule/GameRule;intermediary field_42474Lnet/minecraft/class_1928;field_42474:Lnet/minecraft/class_12279;official acLesw;ac:Lesr;
-
TNT_EXPLODES
- Mappings:
Namespace Name Mixin selector named TNT_EXPLODESLnet/minecraft/world/rule/GameRules;TNT_EXPLODES:Lnet/minecraft/world/rule/GameRule;intermediary field_58052Lnet/minecraft/class_1928;field_58052:Lnet/minecraft/class_12279;official adLesw;ad:Lesr;
-
TNT_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named TNT_EXPLOSION_DROP_DECAYLnet/minecraft/world/rule/GameRules;TNT_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/rule/GameRule;intermediary field_40882Lnet/minecraft/class_1928;field_40882:Lnet/minecraft/class_12279;official aeLesw;ae:Lesr;
-
UNIVERSAL_ANGER
- Mappings:
Namespace Name Mixin selector named UNIVERSAL_ANGERLnet/minecraft/world/rule/GameRules;UNIVERSAL_ANGER:Lnet/minecraft/world/rule/GameRule;intermediary field_25402Lnet/minecraft/class_1928;field_25402:Lnet/minecraft/class_12279;official afLesw;af:Lesr;
-
WATER_SOURCE_CONVERSION
- Mappings:
Namespace Name Mixin selector named WATER_SOURCE_CONVERSIONLnet/minecraft/world/rule/GameRules;WATER_SOURCE_CONVERSION:Lnet/minecraft/world/rule/GameRule;intermediary field_40884Lnet/minecraft/class_1928;field_40884:Lnet/minecraft/class_12279;official agLesw;ag:Lesr;
-
rules
- Mappings:
Namespace Name Mixin selector named rulesLnet/minecraft/world/rule/GameRules;rules:Lnet/minecraft/world/rule/ServerGameRules;intermediary field_9196Lnet/minecraft/class_1928;field_9196:Lnet/minecraft/class_12280;official ahLesw;ah:Lest;
-
-
Constructor Details
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/rule/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/world/rule/ServerGameRules;)Vintermediary <init>Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_12280;)Vofficial <init>Lesw;<init>(Ldfw;Lest;)V
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/rule/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Vintermediary <init>Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;)Vofficial <init>Lesw;<init>(Ldfw;)V
-
-
Method Details
-
createCodec
- Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/world/rule/GameRules;createCodec(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lcom/mojang/serialization/Codec;intermediary method_76182Lnet/minecraft/class_1928;method_76182(Lnet/minecraft/class_7699;)Lcom/mojang/serialization/Codec;official aLesw;a(Ldfw;)Lcom/mojang/serialization/Codec;
-
streamRules
- Mappings:
Namespace Name Mixin selector named streamRulesLnet/minecraft/world/rule/GameRules;streamRules()Ljava/util/stream/Stream;intermediary method_76181Lnet/minecraft/class_1928;method_76181()Ljava/util/stream/Stream;official aLesw;a()Ljava/util/stream/Stream;
-
getValue
- Mappings:
Namespace Name Mixin selector named getValueLnet/minecraft/world/rule/GameRules;getValue(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/Object;intermediary method_76185Lnet/minecraft/class_1928;method_76185(Lnet/minecraft/class_12279;)Ljava/lang/Object;official aLesw;a(Lesr;)Ljava/lang/Object;
-
setValue
- Mappings:
Namespace Name Mixin selector named setValueLnet/minecraft/world/rule/GameRules;setValue(Lnet/minecraft/world/rule/GameRule;Ljava/lang/Object;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_76186Lnet/minecraft/class_1928;method_76186(Lnet/minecraft/class_12279;Ljava/lang/Object;Lnet/minecraft/server/MinecraftServer;)Vofficial aLesw;a(Lesr;Ljava/lang/Object;Lnet/minecraft/server/MinecraftServer;)V
-
withEnabledFeatures
- Mappings:
Namespace Name Mixin selector named withEnabledFeaturesLnet/minecraft/world/rule/GameRules;withEnabledFeatures(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/world/rule/GameRules;intermediary method_27325Lnet/minecraft/class_1928;method_27325(Lnet/minecraft/class_7699;)Lnet/minecraft/class_1928;official bLesw;b(Ldfw;)Lesw;
-
copyFrom
- Mappings:
Namespace Name Mixin selector named copyFromLnet/minecraft/world/rule/GameRules;copyFrom(Lnet/minecraft/world/rule/GameRules;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_76192Lnet/minecraft/class_1928;method_76192(Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)Vofficial aLesw;a(Lesw;Lnet/minecraft/server/MinecraftServer;)V
-
copyFrom
- Mappings:
Namespace Name Mixin selector named copyFromLnet/minecraft/world/rule/GameRules;copyFrom(Lnet/minecraft/world/rule/ServerGameRules;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_76188Lnet/minecraft/class_1928;method_76188(Lnet/minecraft/class_12280;Lnet/minecraft/server/MinecraftServer;)Vofficial aLesw;a(Lest;Lnet/minecraft/server/MinecraftServer;)V
-
copyFrom
private <T> void copyFrom(ServerGameRules rules, GameRule<T> rule, @Nullable MinecraftServer server) - Mappings:
Namespace Name Mixin selector named copyFromLnet/minecraft/world/rule/GameRules;copyFrom(Lnet/minecraft/world/rule/ServerGameRules;Lnet/minecraft/world/rule/GameRule;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_76187Lnet/minecraft/class_1928;method_76187(Lnet/minecraft/class_12280;Lnet/minecraft/class_12279;Lnet/minecraft/server/MinecraftServer;)Vofficial aLesw;a(Lest;Lesr;Lnet/minecraft/server/MinecraftServer;)V
-
accept
Make the visitor visit all registered game rules.The visitation involves calling both
andinvalid reference
Visitor#visit(GameRules.Key, GameRules.Type)visitXfor every game rule, where X is the current rule's concrete type such as a boolean.- Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/world/rule/GameRules;accept(Lnet/minecraft/world/rule/GameRuleVisitor;)Vintermediary method_20744Lnet/minecraft/class_1928;method_20744(Lnet/minecraft/class_4311;)Vofficial aLesw;a(Lesv;)V
-
registerBooleanRule
private static GameRule<Boolean> registerBooleanRule(String name, GameRuleCategory category, boolean defaultValue) - Mappings:
Namespace Name Mixin selector named registerBooleanRuleLnet/minecraft/world/rule/GameRules;registerBooleanRule(Ljava/lang/String;Lnet/minecraft/world/rule/GameRuleCategory;Z)Lnet/minecraft/world/rule/GameRule;intermediary method_76198Lnet/minecraft/class_1928;method_76198(Ljava/lang/String;Lnet/minecraft/class_5198;Z)Lnet/minecraft/class_12279;official aLesw;a(Ljava/lang/String;Less;Z)Lesr;
-
registerIntRule
private static GameRule<Integer> registerIntRule(String name, GameRuleCategory category, int defaultValue, int minValue) - Mappings:
Namespace Name Mixin selector named registerIntRuleLnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/rule/GameRuleCategory;II)Lnet/minecraft/world/rule/GameRule;intermediary method_76195Lnet/minecraft/class_1928;method_76195(Ljava/lang/String;Lnet/minecraft/class_5198;II)Lnet/minecraft/class_12279;official aLesw;a(Ljava/lang/String;Less;II)Lesr;
-
registerIntRule
private static GameRule<Integer> registerIntRule(String name, GameRuleCategory category, int defaultValue, int minValue, int maxValue) - Mappings:
Namespace Name Mixin selector named registerIntRuleLnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/rule/GameRuleCategory;III)Lnet/minecraft/world/rule/GameRule;intermediary method_76196Lnet/minecraft/class_1928;method_76196(Ljava/lang/String;Lnet/minecraft/class_5198;III)Lnet/minecraft/class_12279;official aLesw;a(Ljava/lang/String;Less;III)Lesr;
-
registerIntRule
private static GameRule<Integer> registerIntRule(String name, GameRuleCategory category, int defaultValue, int minValue, int maxValue, FeatureSet requiredFeatures) - Mappings:
Namespace Name Mixin selector named registerIntRuleLnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/rule/GameRuleCategory;IIILnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/world/rule/GameRule;intermediary method_76197Lnet/minecraft/class_1928;method_76197(Ljava/lang/String;Lnet/minecraft/class_5198;IIILnet/minecraft/class_7699;)Lnet/minecraft/class_12279;official aLesw;a(Ljava/lang/String;Less;IIILdfw;)Lesr;
-
register
private static <T> GameRule<T> register(String name, GameRuleCategory category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, com.mojang.serialization.Codec<T> codec, T defaultValue, FeatureSet requiredFeatures, GameRules.Acceptor<T> acceptor, ToIntFunction<T> commandResultSupplier) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/world/rule/GameRules;register(Ljava/lang/String;Lnet/minecraft/world/rule/GameRuleCategory;Lnet/minecraft/world/rule/GameRuleType;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/world/rule/GameRules$Acceptor;Ljava/util/function/ToIntFunction;)Lnet/minecraft/world/rule/GameRule;intermediary method_8359Lnet/minecraft/class_1928;method_8359(Ljava/lang/String;Lnet/minecraft/class_5198;Lnet/minecraft/class_11845;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Lnet/minecraft/class_7699;Lnet/minecraft/class_1928$class_5199;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_12279;official aLesw;a(Ljava/lang/String;Less;Lesu;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Ldfw;Lesw$a;Ljava/util/function/ToIntFunction;)Lesr;
-
registerAndGetDefault
- Mappings:
Namespace Name Mixin selector named registerAndGetDefaultLnet/minecraft/world/rule/GameRules;registerAndGetDefault(Lnet/minecraft/registry/Registry;)Lnet/minecraft/world/rule/GameRule;intermediary method_76199Lnet/minecraft/class_1928;method_76199(Lnet/minecraft/class_2378;)Lnet/minecraft/class_12279;official aLesw;a(Ljq;)Lesr;
-
getRuleValueName
- Mappings:
Namespace Name Mixin selector named getRuleValueNameLnet/minecraft/world/rule/GameRules;getRuleValueName(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/String;intermediary method_76200Lnet/minecraft/class_1928;method_76200(Lnet/minecraft/class_12279;)Ljava/lang/String;official bLesw;b(Lesr;)Ljava/lang/String;
-