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 ess
-
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 aLess;a:Lesn;
-
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 bLess;b:Lesn;
-
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 cLess;c:Lesn;
-
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 dLess;d:Lesn;
-
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 eLess;e:Lesn;
-
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 fLess;f:Lesn;
-
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 gLess;g:Lesn;
-
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 hLess;h:Lesn;
-
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 iLess;i:Lesn;
-
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 jLess;j:Lesn;
-
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 kLess;k:Lesn;
-
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 lLess;l:Lesn;
-
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 mLess;m:Lesn;
-
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 nLess;n:Lesn;
-
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 oLess;o:Lesn;
-
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 pLess;p:Lesn;
-
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 qLess;q:Lesn;
-
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 rLess;r:Lesn;
-
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 sLess;s:Lesn;
-
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 tLess;t:Lesn;
-
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 uLess;u:Lesn;
-
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 vLess;v:Lesn;
-
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 wLess;w:Lesn;
-
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 xLess;x:Lesn;
-
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 yLess;y:Lesn;
-
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 zLess;z:Lesn;
-
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 ALess;A:Lesn;
-
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 BLess;B:Lesn;
-
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 CLess;C:Lesn;
-
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 DLess;D:Lesn;
-
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 ELess;E:Lesn;
-
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 FLess;F:Lesn;
-
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 GLess;G:Lesn;
-
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 HLess;H:Lesn;
-
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 ILess;I:Lesn;
-
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 JLess;J:Lesn;
-
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 KLess;K:Lesn;
-
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 LLess;L:Lesn;
-
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 MLess;M:Lesn;
-
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 NLess;N:Lesn;
-
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 OLess;O:Lesn;
-
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 PLess;P:Lesn;
-
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 QLess;Q:Lesn;
-
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 RLess;R:Lesn;
-
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 SLess;S:Lesn;
-
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 TLess;T:Lesn;
-
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 ULess;U:Lesn;
-
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 VLess;V:Lesn;
-
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 WLess;W:Lesn;
-
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 XLess;X:Lesn;
-
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 YLess;Y:Lesn;
-
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 ZLess;Z:Lesn;
-
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 aaLess;aa:Lesn;
-
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 abLess;ab:Lesn;
-
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 acLess;ac:Lesn;
-
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 adLess;ad:Lesn;
-
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 aeLess;ae:Lesn;
-
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 afLess;af:Lesn;
-
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 agLess;ag:Lesn;
-
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 ahLess;ah:Lesp;
-
-
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>Less;<init>(Ldfu;Lesp;)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>Less;<init>(Ldfu;)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 aLess;a(Ldfu;)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 aLess;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 aLess;a(Lesn;)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 aLess;a(Lesn;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 bLess;b(Ldfu;)Less;
-
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 aLess;a(Less;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 aLess;a(Lesp;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 aLess;a(Lesp;Lesn;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 aLess;a(Lesr;)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 aLess;a(Ljava/lang/String;Leso;Z)Lesn;
-
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 aLess;a(Ljava/lang/String;Leso;II)Lesn;
-
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 aLess;a(Ljava/lang/String;Leso;III)Lesn;
-
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 aLess;a(Ljava/lang/String;Leso;IIILdfu;)Lesn;
-
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 aLess;a(Ljava/lang/String;Leso;Lesq;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Ldfu;Less$a;Ljava/util/function/ToIntFunction;)Lesn;
-
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 aLess;a(Ljq;)Lesn;
-
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 bLess;b(Lesn;)Ljava/lang/String;
-