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 esn
-
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 TypeMethodDescriptionvoidMake the visitor visit all registered game rules.copy(FeatureSet enabledFeatures) static com.mojang.serialization.Codec<GameRules> createCodec(FeatureSet featureSet) static GameRule<?> getDefault(Registry<GameRule<?>> registry) <T> StringgetRuleValueName(GameRule<T> rule) <T> Tprivate static <T> GameRule<T> register(String name, Category category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, com.mojang.serialization.Codec<T> codec, T defaultValue, FeatureSet featureSet, GameRules.Acceptor<T> acceptor, ToIntFunction<T> commandResultSupplier) registerBooleanRule(String name, Category category, boolean defaultValue) registerIntRule(String name, Category category, int defaultValue, int minValue) registerIntRule(String name, Category category, int defaultValue, int minValue, int maxValue) registerIntRule(String name, Category category, int defaultValue, int minValue, int maxValue, FeatureSet featureSet) <T> voidsetValue(GameRule<T> rule, T value, @Nullable MinecraftServer server) private <T> voidupdateValue(ServerGameRules rules, GameRule<T> rule, @Nullable MinecraftServer server) voidupdateValues(GameRules rules, @Nullable MinecraftServer server) voidupdateValues(ServerGameRules rules, @Nullable MinecraftServer server)
-
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 aLesn;a:Lesi;
-
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 bLesn;b:Lesi;
-
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 cLesn;c:Lesi;
-
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 dLesn;d:Lesi;
-
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 eLesn;e:Lesi;
-
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 fLesn;f:Lesi;
-
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 gLesn;g:Lesi;
-
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 hLesn;h:Lesi;
-
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 iLesn;i:Lesi;
-
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 jLesn;j:Lesi;
-
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 kLesn;k:Lesi;
-
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 lLesn;l:Lesi;
-
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 mLesn;m:Lesi;
-
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 nLesn;n:Lesi;
-
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 oLesn;o:Lesi;
-
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 pLesn;p:Lesi;
-
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 qLesn;q:Lesi;
-
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 rLesn;r:Lesi;
-
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 sLesn;s:Lesi;
-
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 tLesn;t:Lesi;
-
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 uLesn;u:Lesi;
-
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 vLesn;v:Lesi;
-
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 wLesn;w:Lesi;
-
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 xLesn;x:Lesi;
-
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 yLesn;y:Lesi;
-
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 zLesn;z:Lesi;
-
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 ALesn;A:Lesi;
-
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 BLesn;B:Lesi;
-
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 CLesn;C:Lesi;
-
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 DLesn;D:Lesi;
-
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 ELesn;E:Lesi;
-
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 FLesn;F:Lesi;
-
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 GLesn;G:Lesi;
-
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 HLesn;H:Lesi;
-
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 ILesn;I:Lesi;
-
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 JLesn;J:Lesi;
-
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 KLesn;K:Lesi;
-
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 LLesn;L:Lesi;
-
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 MLesn;M:Lesi;
-
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 NLesn;N:Lesi;
-
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 OLesn;O:Lesi;
-
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 PLesn;P:Lesi;
-
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 QLesn;Q:Lesi;
-
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 RLesn;R:Lesi;
-
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 SLesn;S:Lesi;
-
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 TLesn;T:Lesi;
-
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 ULesn;U:Lesi;
-
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 VLesn;V:Lesi;
-
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 WLesn;W:Lesi;
-
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 XLesn;X:Lesi;
-
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 YLesn;Y:Lesi;
-
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 ZLesn;Z:Lesi;
-
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 aaLesn;aa:Lesi;
-
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 abLesn;ab:Lesi;
-
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 acLesn;ac:Lesi;
-
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 adLesn;ad:Lesi;
-
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 aeLesn;ae:Lesi;
-
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 afLesn;af:Lesi;
-
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 agLesn;ag:Lesi;
-
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 ahLesn;ah:Lesk;
-
-
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>Lesn;<init>(Ldfo;Lesk;)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>Lesn;<init>(Ldfo;)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 aLesn;a(Ldfo;)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 aLesn;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 aLesn;a(Lesi;)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 aLesn;a(Lesi;Ljava/lang/Object;Lnet/minecraft/server/MinecraftServer;)V
-
copy
- Mappings:
Namespace Name Mixin selector named copyLnet/minecraft/world/rule/GameRules;copy(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 bLesn;b(Ldfo;)Lesn;
-
updateValues
- Mappings:
Namespace Name Mixin selector named updateValuesLnet/minecraft/world/rule/GameRules;updateValues(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 aLesn;a(Lesn;Lnet/minecraft/server/MinecraftServer;)V
-
updateValues
- Mappings:
Namespace Name Mixin selector named updateValuesLnet/minecraft/world/rule/GameRules;updateValues(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 aLesn;a(Lesk;Lnet/minecraft/server/MinecraftServer;)V
-
updateValue
private <T> void updateValue(ServerGameRules rules, GameRule<T> rule, @Nullable MinecraftServer server) - Mappings:
Namespace Name Mixin selector named updateValueLnet/minecraft/world/rule/GameRules;updateValue(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 aLesn;a(Lesk;Lesi;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/Visitor;)Vintermediary method_20744Lnet/minecraft/class_1928;method_20744(Lnet/minecraft/class_4311;)Vofficial aLesn;a(Lesm;)V
-
registerBooleanRule
private static GameRule<Boolean> registerBooleanRule(String name, Category category, boolean defaultValue) - Mappings:
Namespace Name Mixin selector named registerBooleanRuleLnet/minecraft/world/rule/GameRules;registerBooleanRule(Ljava/lang/String;Lnet/minecraft/world/Category;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 aLesn;a(Ljava/lang/String;Lesj;Z)Lesi;
-
registerIntRule
private static GameRule<Integer> registerIntRule(String name, Category category, int defaultValue, int minValue) - Mappings:
Namespace Name Mixin selector named registerIntRuleLnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/Category;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 aLesn;a(Ljava/lang/String;Lesj;II)Lesi;
-
registerIntRule
private static GameRule<Integer> registerIntRule(String name, Category 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/Category;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 aLesn;a(Ljava/lang/String;Lesj;III)Lesi;
-
registerIntRule
private static GameRule<Integer> registerIntRule(String name, Category category, int defaultValue, int minValue, int maxValue, FeatureSet featureSet) - Mappings:
Namespace Name Mixin selector named registerIntRuleLnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/Category;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 aLesn;a(Ljava/lang/String;Lesj;IIILdfo;)Lesi;
-
register
private static <T> GameRule<T> register(String name, Category category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, com.mojang.serialization.Codec<T> codec, T defaultValue, FeatureSet featureSet, 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/Category;Lnet/minecraft/server/dedicated/management/dispatch/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 aLesn;a(Ljava/lang/String;Lesj;Lesl;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Ldfo;Lesn$a;Ljava/util/function/ToIntFunction;)Lesi;
-
getDefault
- Mappings:
Namespace Name Mixin selector named getDefaultLnet/minecraft/world/rule/GameRules;getDefault(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 aLesn;a(Ljs;)Lesi;
-
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 bLesn;b(Lesi;)Ljava/lang/String;
-