Package net.minecraft.world
Class GameRules
java.lang.Object
net.minecraft.world.GameRules
- Mappings:
Namespace Name named net/minecraft/world/GameRulesintermediary net/minecraft/class_1928official duj
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceGameRules.Acceptor<T extends GameRules.Rule<T>>static classstatic enumstatic classstatic final classGameRules.Key<T extends GameRules.Rule<T>>static classGameRules.Rule<T extends GameRules.Rule<T>>static classGameRules.Type<T extends GameRules.Rule<T>>static interfaceA visitor used to visit all game rules. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether a player's advancements should be announced in chat.static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.IntRule> static final intstatic final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether raids should occur.static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether a player should immediately respawn upon death.static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether mobs can modify the world.static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether mobs should drop loot on death.static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether mobs can spawn naturally.static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether blocks should drop their items when broken.static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> private final FeatureSetstatic final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> A game rule which regulates whether player inventories should be persist through respawning.static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> (package private) static final Loggerstatic final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.IntRule> A game rule which regulates the number of entities that can be crammed into a block space before they incur cramming damage.static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.BooleanRule> private static final Map<GameRules.Key<?>, GameRules.Type<?>> private final Map<GameRules.Key<?>, GameRules.Rule<?>> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.IntRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> static final GameRules.Key<GameRules.BooleanRule> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGameRules(Map<GameRules.Key<?>, GameRules.Rule<?>> rules, FeatureSet enabledFeatures) GameRules(FeatureSet enabledFeatures) GameRules(FeatureSet enabledFeatures, com.mojang.serialization.DynamicLike<?> values) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GameRules.Visitor visitor) Make the visitor visit all registered game rules.private <T extends GameRules.Rule<T>>
voidaccept(GameRules.Visitor visitor, GameRules.Key<?> key, GameRules.Type<?> type) copy(FeatureSet enabledFeatures) static <T extends GameRules.Rule<T>>
com.mojang.serialization.Codec<GameRules.Key<T>> createKeyCodec(Class<T> ruleClass) <T extends GameRules.Rule<T>>
Tget(GameRules.Key<T> key) booleanintgetInt(GameRules.Key<GameRules.IntRule> rule) static <T extends GameRules.Rule<T>>
GameRules.Type<T> getRuleType(GameRules.Key<T> key) private voidload(com.mojang.serialization.DynamicLike<?> values) private static <T extends GameRules.Rule<T>>
GameRules.Key<T> register(String name, GameRules.Category category, GameRules.Type<T> type) voidsetAllValues(GameRules rules, @Nullable MinecraftServer server) private <T extends GameRules.Rule<T>>
voidsetValue(GameRules.Key<T> key, GameRules rules, @Nullable MinecraftServer server) static Stream<Map.Entry<GameRules.Key<?>, GameRules.Type<?>>> streamAllRules(FeatureSet enabledFeatures) toNbt()
-
Field Details
-
DEFAULT_RANDOM_TICK_SPEED
public static final int DEFAULT_RANDOM_TICK_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_RANDOM_TICK_SPEEDLnet/minecraft/world/GameRules;DEFAULT_RANDOM_TICK_SPEED:Iintermediary field_30963Lnet/minecraft/class_1928;field_30963:Iofficial aLduj;a:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/world/GameRules;LOGGER:Lorg/slf4j/Logger;intermediary field_19410Lnet/minecraft/class_1928;field_19410:Lorg/slf4j/Logger;official ajLduj;aj:Lorg/slf4j/Logger;
-
RULE_TYPES
- Mappings:
Namespace Name Mixin selector named RULE_TYPESLnet/minecraft/world/GameRules;RULE_TYPES:Ljava/util/Map;intermediary field_9197Lnet/minecraft/class_1928;field_9197:Ljava/util/Map;official akLduj;ak:Ljava/util/Map;
-
DO_FIRE_TICK
- Mappings:
Namespace Name Mixin selector named DO_FIRE_TICKLnet/minecraft/world/GameRules;DO_FIRE_TICK:Lnet/minecraft/world/GameRules$Key;intermediary field_19387Lnet/minecraft/class_1928;field_19387:Lnet/minecraft/class_1928$class_4313;official bLduj;b:Lduj$e;
-
ALLOW_FIRE_TICKS_AWAY_FROM_PLAYER
- Mappings:
Namespace Name Mixin selector named ALLOW_FIRE_TICKS_AWAY_FROM_PLAYERLnet/minecraft/world/GameRules;ALLOW_FIRE_TICKS_AWAY_FROM_PLAYER:Lnet/minecraft/world/GameRules$Key;intermediary field_56559Lnet/minecraft/class_1928;field_56559:Lnet/minecraft/class_1928$class_4313;official cLduj;c:Lduj$e;
-
DO_MOB_GRIEFING
A game rule which regulates whether mobs can modify the world.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/GameRules;DO_MOB_GRIEFING:Lnet/minecraft/world/GameRules$Key;intermediary field_19388Lnet/minecraft/class_1928;field_19388:Lnet/minecraft/class_1928$class_4313;official dLduj;d:Lduj$e;
-
KEEP_INVENTORY
A game rule which regulates whether player inventories should be persist through respawning.- Mappings:
Namespace Name Mixin selector named KEEP_INVENTORYLnet/minecraft/world/GameRules;KEEP_INVENTORY:Lnet/minecraft/world/GameRules$Key;intermediary field_19389Lnet/minecraft/class_1928;field_19389:Lnet/minecraft/class_1928$class_4313;official eLduj;e:Lduj$e;
-
DO_MOB_SPAWNING
A game rule which regulates whether mobs can spawn naturally.- Mappings:
Namespace Name Mixin selector named DO_MOB_SPAWNINGLnet/minecraft/world/GameRules;DO_MOB_SPAWNING:Lnet/minecraft/world/GameRules$Key;intermediary field_19390Lnet/minecraft/class_1928;field_19390:Lnet/minecraft/class_1928$class_4313;official fLduj;f:Lduj$e;
-
DO_MOB_LOOT
A game rule which regulates whether mobs should drop loot on death.- Mappings:
Namespace Name Mixin selector named DO_MOB_LOOTLnet/minecraft/world/GameRules;DO_MOB_LOOT:Lnet/minecraft/world/GameRules$Key;intermediary field_19391Lnet/minecraft/class_1928;field_19391:Lnet/minecraft/class_1928$class_4313;official gLduj;g:Lduj$e;
-
PROJECTILES_CAN_BREAK_BLOCKS
- Mappings:
Namespace Name Mixin selector named PROJECTILES_CAN_BREAK_BLOCKSLnet/minecraft/world/GameRules;PROJECTILES_CAN_BREAK_BLOCKS:Lnet/minecraft/world/GameRules$Key;intermediary field_46796Lnet/minecraft/class_1928;field_46796:Lnet/minecraft/class_1928$class_4313;official hLduj;h:Lduj$e;
-
DO_TILE_DROPS
A game rule which regulates whether blocks should drop their items when broken.- Mappings:
Namespace Name Mixin selector named DO_TILE_DROPSLnet/minecraft/world/GameRules;DO_TILE_DROPS:Lnet/minecraft/world/GameRules$Key;intermediary field_19392Lnet/minecraft/class_1928;field_19392:Lnet/minecraft/class_1928$class_4313;official iLduj;i:Lduj$e;
-
DO_ENTITY_DROPS
- Mappings:
Namespace Name Mixin selector named DO_ENTITY_DROPSLnet/minecraft/world/GameRules;DO_ENTITY_DROPS:Lnet/minecraft/world/GameRules$Key;intermediary field_19393Lnet/minecraft/class_1928;field_19393:Lnet/minecraft/class_1928$class_4313;official jLduj;j:Lduj$e;
-
COMMAND_BLOCK_OUTPUT
- Mappings:
Namespace Name Mixin selector named COMMAND_BLOCK_OUTPUTLnet/minecraft/world/GameRules;COMMAND_BLOCK_OUTPUT:Lnet/minecraft/world/GameRules$Key;intermediary field_19394Lnet/minecraft/class_1928;field_19394:Lnet/minecraft/class_1928$class_4313;official kLduj;k:Lduj$e;
-
NATURAL_REGENERATION
- Mappings:
Namespace Name Mixin selector named NATURAL_REGENERATIONLnet/minecraft/world/GameRules;NATURAL_REGENERATION:Lnet/minecraft/world/GameRules$Key;intermediary field_19395Lnet/minecraft/class_1928;field_19395:Lnet/minecraft/class_1928$class_4313;official lLduj;l:Lduj$e;
-
DO_DAYLIGHT_CYCLE
- Mappings:
Namespace Name Mixin selector named DO_DAYLIGHT_CYCLELnet/minecraft/world/GameRules;DO_DAYLIGHT_CYCLE:Lnet/minecraft/world/GameRules$Key;intermediary field_19396Lnet/minecraft/class_1928;field_19396:Lnet/minecraft/class_1928$class_4313;official mLduj;m:Lduj$e;
-
LOG_ADMIN_COMMANDS
- Mappings:
Namespace Name Mixin selector named LOG_ADMIN_COMMANDSLnet/minecraft/world/GameRules;LOG_ADMIN_COMMANDS:Lnet/minecraft/world/GameRules$Key;intermediary field_19397Lnet/minecraft/class_1928;field_19397:Lnet/minecraft/class_1928$class_4313;official nLduj;n:Lduj$e;
-
SHOW_DEATH_MESSAGES
- Mappings:
Namespace Name Mixin selector named SHOW_DEATH_MESSAGESLnet/minecraft/world/GameRules;SHOW_DEATH_MESSAGES:Lnet/minecraft/world/GameRules$Key;intermediary field_19398Lnet/minecraft/class_1928;field_19398:Lnet/minecraft/class_1928$class_4313;official oLduj;o:Lduj$e;
-
RANDOM_TICK_SPEED
- Mappings:
Namespace Name Mixin selector named RANDOM_TICK_SPEEDLnet/minecraft/world/GameRules;RANDOM_TICK_SPEED:Lnet/minecraft/world/GameRules$Key;intermediary field_19399Lnet/minecraft/class_1928;field_19399:Lnet/minecraft/class_1928$class_4313;official pLduj;p:Lduj$e;
-
SEND_COMMAND_FEEDBACK
- Mappings:
Namespace Name Mixin selector named SEND_COMMAND_FEEDBACKLnet/minecraft/world/GameRules;SEND_COMMAND_FEEDBACK:Lnet/minecraft/world/GameRules$Key;intermediary field_19400Lnet/minecraft/class_1928;field_19400:Lnet/minecraft/class_1928$class_4313;official qLduj;q:Lduj$e;
-
REDUCED_DEBUG_INFO
A game rule which regulates whether clients' debug HUDs show reduced information.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/GameRules;REDUCED_DEBUG_INFO:Lnet/minecraft/world/GameRules$Key;intermediary field_19401Lnet/minecraft/class_1928;field_19401:Lnet/minecraft/class_1928$class_4313;official rLduj;r:Lduj$e;
-
SPECTATORS_GENERATE_CHUNKS
- Mappings:
Namespace Name Mixin selector named SPECTATORS_GENERATE_CHUNKSLnet/minecraft/world/GameRules;SPECTATORS_GENERATE_CHUNKS:Lnet/minecraft/world/GameRules$Key;intermediary field_19402Lnet/minecraft/class_1928;field_19402:Lnet/minecraft/class_1928$class_4313;official sLduj;s:Lduj$e;
-
SPAWN_RADIUS
- Mappings:
Namespace Name Mixin selector named SPAWN_RADIUSLnet/minecraft/world/GameRules;SPAWN_RADIUS:Lnet/minecraft/world/GameRules$Key;intermediary field_19403Lnet/minecraft/class_1928;field_19403:Lnet/minecraft/class_1928$class_4313;official tLduj;t:Lduj$e;
-
DISABLE_PLAYER_MOVEMENT_CHECK
- Mappings:
Namespace Name Mixin selector named DISABLE_PLAYER_MOVEMENT_CHECKLnet/minecraft/world/GameRules;DISABLE_PLAYER_MOVEMENT_CHECK:Lnet/minecraft/world/GameRules$Key;intermediary field_54909Lnet/minecraft/class_1928;field_54909:Lnet/minecraft/class_1928$class_4313;official uLduj;u:Lduj$e;
-
DISABLE_ELYTRA_MOVEMENT_CHECK
- Mappings:
Namespace Name Mixin selector named DISABLE_ELYTRA_MOVEMENT_CHECKLnet/minecraft/world/GameRules;DISABLE_ELYTRA_MOVEMENT_CHECK:Lnet/minecraft/world/GameRules$Key;intermediary field_19404Lnet/minecraft/class_1928;field_19404:Lnet/minecraft/class_1928$class_4313;official vLduj;v:Lduj$e;
-
MAX_ENTITY_CRAMMING
A game rule which regulates the number of entities that can be crammed into a block space before they incur cramming damage.- Mappings:
Namespace Name Mixin selector named MAX_ENTITY_CRAMMINGLnet/minecraft/world/GameRules;MAX_ENTITY_CRAMMING:Lnet/minecraft/world/GameRules$Key;intermediary field_19405Lnet/minecraft/class_1928;field_19405:Lnet/minecraft/class_1928$class_4313;official wLduj;w:Lduj$e;
-
DO_WEATHER_CYCLE
- Mappings:
Namespace Name Mixin selector named DO_WEATHER_CYCLELnet/minecraft/world/GameRules;DO_WEATHER_CYCLE:Lnet/minecraft/world/GameRules$Key;intermediary field_19406Lnet/minecraft/class_1928;field_19406:Lnet/minecraft/class_1928$class_4313;official xLduj;x:Lduj$e;
-
DO_LIMITED_CRAFTING
- Mappings:
Namespace Name Mixin selector named DO_LIMITED_CRAFTINGLnet/minecraft/world/GameRules;DO_LIMITED_CRAFTING:Lnet/minecraft/world/GameRules$Key;intermediary field_19407Lnet/minecraft/class_1928;field_19407:Lnet/minecraft/class_1928$class_4313;official yLduj;y:Lduj$e;
-
MAX_COMMAND_CHAIN_LENGTH
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_CHAIN_LENGTHLnet/minecraft/world/GameRules;MAX_COMMAND_CHAIN_LENGTH:Lnet/minecraft/world/GameRules$Key;intermediary field_19408Lnet/minecraft/class_1928;field_19408:Lnet/minecraft/class_1928$class_4313;official zLduj;z:Lduj$e;
-
MAX_COMMAND_FORK_COUNT
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_FORK_COUNTLnet/minecraft/world/GameRules;MAX_COMMAND_FORK_COUNT:Lnet/minecraft/world/GameRules$Key;intermediary field_46658Lnet/minecraft/class_1928;field_46658:Lnet/minecraft/class_1928$class_4313;official ALduj;A:Lduj$e;
-
COMMAND_MODIFICATION_BLOCK_LIMIT
- Mappings:
Namespace Name Mixin selector named COMMAND_MODIFICATION_BLOCK_LIMITLnet/minecraft/world/GameRules;COMMAND_MODIFICATION_BLOCK_LIMIT:Lnet/minecraft/world/GameRules$Key;intermediary field_41766Lnet/minecraft/class_1928;field_41766:Lnet/minecraft/class_1928$class_4313;official BLduj;B:Lduj$e;
-
ANNOUNCE_ADVANCEMENTS
A game rule which regulates whether a player's advancements should be announced in chat.- Mappings:
Namespace Name Mixin selector named ANNOUNCE_ADVANCEMENTSLnet/minecraft/world/GameRules;ANNOUNCE_ADVANCEMENTS:Lnet/minecraft/world/GameRules$Key;intermediary field_19409Lnet/minecraft/class_1928;field_19409:Lnet/minecraft/class_1928$class_4313;official CLduj;C:Lduj$e;
-
DISABLE_RAIDS
A game rule which regulates whether raids should occur.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/GameRules;DISABLE_RAIDS:Lnet/minecraft/world/GameRules$Key;intermediary field_19422Lnet/minecraft/class_1928;field_19422:Lnet/minecraft/class_1928$class_4313;official DLduj;D:Lduj$e;
-
DO_INSOMNIA
- Mappings:
Namespace Name Mixin selector named DO_INSOMNIALnet/minecraft/world/GameRules;DO_INSOMNIA:Lnet/minecraft/world/GameRules$Key;intermediary field_20637Lnet/minecraft/class_1928;field_20637:Lnet/minecraft/class_1928$class_4313;official ELduj;E:Lduj$e;
-
DO_IMMEDIATE_RESPAWN
A game rule which regulates whether a player should immediately respawn upon death.- Mappings:
Namespace Name Mixin selector named DO_IMMEDIATE_RESPAWNLnet/minecraft/world/GameRules;DO_IMMEDIATE_RESPAWN:Lnet/minecraft/world/GameRules$Key;intermediary field_20638Lnet/minecraft/class_1928;field_20638:Lnet/minecraft/class_1928$class_4313;official FLduj;F:Lduj$e;
-
PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
- Mappings:
Namespace Name Mixin selector named PLAYERS_NETHER_PORTAL_DEFAULT_DELAYLnet/minecraft/world/GameRules;PLAYERS_NETHER_PORTAL_DEFAULT_DELAY:Lnet/minecraft/world/GameRules$Key;intermediary field_46794Lnet/minecraft/class_1928;field_46794:Lnet/minecraft/class_1928$class_4313;official GLduj;G:Lduj$e;
-
PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
- Mappings:
Namespace Name Mixin selector named PLAYERS_NETHER_PORTAL_CREATIVE_DELAYLnet/minecraft/world/GameRules;PLAYERS_NETHER_PORTAL_CREATIVE_DELAY:Lnet/minecraft/world/GameRules$Key;intermediary field_46795Lnet/minecraft/class_1928;field_46795:Lnet/minecraft/class_1928$class_4313;official HLduj;H:Lduj$e;
-
DROWNING_DAMAGE
- Mappings:
Namespace Name Mixin selector named DROWNING_DAMAGELnet/minecraft/world/GameRules;DROWNING_DAMAGE:Lnet/minecraft/world/GameRules$Key;intermediary field_20634Lnet/minecraft/class_1928;field_20634:Lnet/minecraft/class_1928$class_4313;official ILduj;I:Lduj$e;
-
FALL_DAMAGE
- Mappings:
Namespace Name Mixin selector named FALL_DAMAGELnet/minecraft/world/GameRules;FALL_DAMAGE:Lnet/minecraft/world/GameRules$Key;intermediary field_20635Lnet/minecraft/class_1928;field_20635:Lnet/minecraft/class_1928$class_4313;official JLduj;J:Lduj$e;
-
FIRE_DAMAGE
- Mappings:
Namespace Name Mixin selector named FIRE_DAMAGELnet/minecraft/world/GameRules;FIRE_DAMAGE:Lnet/minecraft/world/GameRules$Key;intermediary field_20636Lnet/minecraft/class_1928;field_20636:Lnet/minecraft/class_1928$class_4313;official KLduj;K:Lduj$e;
-
FREEZE_DAMAGE
- Mappings:
Namespace Name Mixin selector named FREEZE_DAMAGELnet/minecraft/world/GameRules;FREEZE_DAMAGE:Lnet/minecraft/world/GameRules$Key;intermediary field_28044Lnet/minecraft/class_1928;field_28044:Lnet/minecraft/class_1928$class_4313;official LLduj;L:Lduj$e;
-
DO_PATROL_SPAWNING
- Mappings:
Namespace Name Mixin selector named DO_PATROL_SPAWNINGLnet/minecraft/world/GameRules;DO_PATROL_SPAWNING:Lnet/minecraft/world/GameRules$Key;intermediary field_21831Lnet/minecraft/class_1928;field_21831:Lnet/minecraft/class_1928$class_4313;official MLduj;M:Lduj$e;
-
DO_TRADER_SPAWNING
- Mappings:
Namespace Name Mixin selector named DO_TRADER_SPAWNINGLnet/minecraft/world/GameRules;DO_TRADER_SPAWNING:Lnet/minecraft/world/GameRules$Key;intermediary field_21832Lnet/minecraft/class_1928;field_21832:Lnet/minecraft/class_1928$class_4313;official NLduj;N:Lduj$e;
-
DO_WARDEN_SPAWNING
- Mappings:
Namespace Name Mixin selector named DO_WARDEN_SPAWNINGLnet/minecraft/world/GameRules;DO_WARDEN_SPAWNING:Lnet/minecraft/world/GameRules$Key;intermediary field_38975Lnet/minecraft/class_1928;field_38975:Lnet/minecraft/class_1928$class_4313;official OLduj;O:Lduj$e;
-
FORGIVE_DEAD_PLAYERS
- Mappings:
Namespace Name Mixin selector named FORGIVE_DEAD_PLAYERSLnet/minecraft/world/GameRules;FORGIVE_DEAD_PLAYERS:Lnet/minecraft/world/GameRules$Key;intermediary field_25401Lnet/minecraft/class_1928;field_25401:Lnet/minecraft/class_1928$class_4313;official PLduj;P:Lduj$e;
-
UNIVERSAL_ANGER
- Mappings:
Namespace Name Mixin selector named UNIVERSAL_ANGERLnet/minecraft/world/GameRules;UNIVERSAL_ANGER:Lnet/minecraft/world/GameRules$Key;intermediary field_25402Lnet/minecraft/class_1928;field_25402:Lnet/minecraft/class_1928$class_4313;official QLduj;Q:Lduj$e;
-
PLAYERS_SLEEPING_PERCENTAGE
- Mappings:
Namespace Name Mixin selector named PLAYERS_SLEEPING_PERCENTAGELnet/minecraft/world/GameRules;PLAYERS_SLEEPING_PERCENTAGE:Lnet/minecraft/world/GameRules$Key;intermediary field_28357Lnet/minecraft/class_1928;field_28357:Lnet/minecraft/class_1928$class_4313;official RLduj;R:Lduj$e;
-
BLOCK_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named BLOCK_EXPLOSION_DROP_DECAYLnet/minecraft/world/GameRules;BLOCK_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/GameRules$Key;intermediary field_40880Lnet/minecraft/class_1928;field_40880:Lnet/minecraft/class_1928$class_4313;official SLduj;S:Lduj$e;
-
MOB_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named MOB_EXPLOSION_DROP_DECAYLnet/minecraft/world/GameRules;MOB_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/GameRules$Key;intermediary field_40881Lnet/minecraft/class_1928;field_40881:Lnet/minecraft/class_1928$class_4313;official TLduj;T:Lduj$e;
-
TNT_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named TNT_EXPLOSION_DROP_DECAYLnet/minecraft/world/GameRules;TNT_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/GameRules$Key;intermediary field_40882Lnet/minecraft/class_1928;field_40882:Lnet/minecraft/class_1928$class_4313;official ULduj;U:Lduj$e;
-
SNOW_ACCUMULATION_HEIGHT
- Mappings:
Namespace Name Mixin selector named SNOW_ACCUMULATION_HEIGHTLnet/minecraft/world/GameRules;SNOW_ACCUMULATION_HEIGHT:Lnet/minecraft/world/GameRules$Key;intermediary field_40883Lnet/minecraft/class_1928;field_40883:Lnet/minecraft/class_1928$class_4313;official VLduj;V:Lduj$e;
-
WATER_SOURCE_CONVERSION
- Mappings:
Namespace Name Mixin selector named WATER_SOURCE_CONVERSIONLnet/minecraft/world/GameRules;WATER_SOURCE_CONVERSION:Lnet/minecraft/world/GameRules$Key;intermediary field_40884Lnet/minecraft/class_1928;field_40884:Lnet/minecraft/class_1928$class_4313;official WLduj;W:Lduj$e;
-
LAVA_SOURCE_CONVERSION
- Mappings:
Namespace Name Mixin selector named LAVA_SOURCE_CONVERSIONLnet/minecraft/world/GameRules;LAVA_SOURCE_CONVERSION:Lnet/minecraft/world/GameRules$Key;intermediary field_40885Lnet/minecraft/class_1928;field_40885:Lnet/minecraft/class_1928$class_4313;official XLduj;X:Lduj$e;
-
GLOBAL_SOUND_EVENTS
- Mappings:
Namespace Name Mixin selector named GLOBAL_SOUND_EVENTSLnet/minecraft/world/GameRules;GLOBAL_SOUND_EVENTS:Lnet/minecraft/world/GameRules$Key;intermediary field_40886Lnet/minecraft/class_1928;field_40886:Lnet/minecraft/class_1928$class_4313;official YLduj;Y:Lduj$e;
-
DO_VINES_SPREAD
- Mappings:
Namespace Name Mixin selector named DO_VINES_SPREADLnet/minecraft/world/GameRules;DO_VINES_SPREAD:Lnet/minecraft/world/GameRules$Key;intermediary field_42474Lnet/minecraft/class_1928;field_42474:Lnet/minecraft/class_1928$class_4313;official ZLduj;Z:Lduj$e;
-
ENDER_PEARLS_VANISH_ON_DEATH
- Mappings:
Namespace Name Mixin selector named ENDER_PEARLS_VANISH_ON_DEATHLnet/minecraft/world/GameRules;ENDER_PEARLS_VANISH_ON_DEATH:Lnet/minecraft/world/GameRules$Key;intermediary field_46176Lnet/minecraft/class_1928;field_46176:Lnet/minecraft/class_1928$class_4313;official aaLduj;aa:Lduj$e;
-
MINECART_MAX_SPEED
- Mappings:
Namespace Name Mixin selector named MINECART_MAX_SPEEDLnet/minecraft/world/GameRules;MINECART_MAX_SPEED:Lnet/minecraft/world/GameRules$Key;intermediary field_52614Lnet/minecraft/class_1928;field_52614:Lnet/minecraft/class_1928$class_4313;official abLduj;ab:Lduj$e;
-
TNT_EXPLODES
- Mappings:
Namespace Name Mixin selector named TNT_EXPLODESLnet/minecraft/world/GameRules;TNT_EXPLODES:Lnet/minecraft/world/GameRules$Key;intermediary field_58052Lnet/minecraft/class_1928;field_58052:Lnet/minecraft/class_1928$class_4313;official acLduj;ac:Lduj$e;
-
LOCATOR_BAR
- Mappings:
Namespace Name Mixin selector named LOCATOR_BARLnet/minecraft/world/GameRules;LOCATOR_BAR:Lnet/minecraft/world/GameRules$Key;intermediary field_59751Lnet/minecraft/class_1928;field_59751:Lnet/minecraft/class_1928$class_4313;official adLduj;ad:Lduj$e;
-
PVP
- Mappings:
Namespace Name Mixin selector named PVPLnet/minecraft/world/GameRules;PVP:Lnet/minecraft/world/GameRules$Key;intermediary field_62434Lnet/minecraft/class_1928;field_62434:Lnet/minecraft/class_1928$class_4313;official aeLduj;ae:Lduj$e;
-
ALLOW_ENTERING_NETHER_USING_PORTALS
- Mappings:
Namespace Name Mixin selector named ALLOW_ENTERING_NETHER_USING_PORTALSLnet/minecraft/world/GameRules;ALLOW_ENTERING_NETHER_USING_PORTALS:Lnet/minecraft/world/GameRules$Key;intermediary field_62435Lnet/minecraft/class_1928;field_62435:Lnet/minecraft/class_1928$class_4313;official afLduj;af:Lduj$e;
-
SPAWN_MONSTERS
- Mappings:
Namespace Name Mixin selector named SPAWN_MONSTERSLnet/minecraft/world/GameRules;SPAWN_MONSTERS:Lnet/minecraft/world/GameRules$Key;intermediary field_62436Lnet/minecraft/class_1928;field_62436:Lnet/minecraft/class_1928$class_4313;official agLduj;ag:Lduj$e;
-
COMMAND_BLOCKS_ENABLED
- Mappings:
Namespace Name Mixin selector named COMMAND_BLOCKS_ENABLEDLnet/minecraft/world/GameRules;COMMAND_BLOCKS_ENABLED:Lnet/minecraft/world/GameRules$Key;intermediary field_62916Lnet/minecraft/class_1928;field_62916:Lnet/minecraft/class_1928$class_4313;official ahLduj;ah:Lduj$e;
-
SPAWNER_BLOCKS_ENABLED
- Mappings:
Namespace Name Mixin selector named SPAWNER_BLOCKS_ENABLEDLnet/minecraft/world/GameRules;SPAWNER_BLOCKS_ENABLED:Lnet/minecraft/world/GameRules$Key;intermediary field_62917Lnet/minecraft/class_1928;field_62917:Lnet/minecraft/class_1928$class_4313;official aiLduj;ai:Lduj$e;
-
rules
- Mappings:
Namespace Name Mixin selector named rulesLnet/minecraft/world/GameRules;rules:Ljava/util/Map;intermediary field_9196Lnet/minecraft/class_1928;field_9196:Ljava/util/Map;official alLduj;al:Ljava/util/Map;
-
enabledFeatures
- Mappings:
Namespace Name Mixin selector named enabledFeaturesLnet/minecraft/world/GameRules;enabledFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary field_52615Lnet/minecraft/class_1928;field_52615:Lnet/minecraft/class_7699;official amLduj;am:Ldfn;
-
-
Constructor Details
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lcom/mojang/serialization/DynamicLike;)Vintermediary <init>Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;Lcom/mojang/serialization/DynamicLike;)Vofficial <init>Lduj;<init>(Ldfn;Lcom/mojang/serialization/DynamicLike;)V
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Vintermediary <init>Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;)Vofficial <init>Lduj;<init>(Ldfn;)V
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/GameRules;<init>(Ljava/util/Map;Lnet/minecraft/resource/featuretoggle/FeatureSet;)Vintermediary <init>Lnet/minecraft/class_1928;<init>(Ljava/util/Map;Lnet/minecraft/class_7699;)Vofficial <init>Lduj;<init>(Ljava/util/Map;Ldfn;)V
-
-
Method Details
-
getRuleType
- Mappings:
Namespace Name Mixin selector named getRuleTypeLnet/minecraft/world/GameRules;getRuleType(Lnet/minecraft/world/GameRules$Key;)Lnet/minecraft/world/GameRules$Type;intermediary method_66702Lnet/minecraft/class_1928;method_66702(Lnet/minecraft/class_1928$class_4313;)Lnet/minecraft/class_1928$class_4314;official aLduj;a(Lduj$e;)Lduj$f;
-
createKeyCodec
public static <T extends GameRules.Rule<T>> com.mojang.serialization.Codec<GameRules.Key<T>> createKeyCodec(Class<T> ruleClass) - Mappings:
Namespace Name Mixin selector named createKeyCodecLnet/minecraft/world/GameRules;createKeyCodec(Ljava/lang/Class;)Lcom/mojang/serialization/Codec;intermediary method_66703Lnet/minecraft/class_1928;method_66703(Ljava/lang/Class;)Lcom/mojang/serialization/Codec;official aLduj;a(Ljava/lang/Class;)Lcom/mojang/serialization/Codec;
-
register
private static <T extends GameRules.Rule<T>> GameRules.Key<T> register(String name, GameRules.Category category, GameRules.Type<T> type) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/world/GameRules;register(Ljava/lang/String;Lnet/minecraft/world/GameRules$Category;Lnet/minecraft/world/GameRules$Type;)Lnet/minecraft/world/GameRules$Key;intermediary method_8359Lnet/minecraft/class_1928;method_8359(Ljava/lang/String;Lnet/minecraft/class_1928$class_5198;Lnet/minecraft/class_1928$class_4314;)Lnet/minecraft/class_1928$class_4313;official aLduj;a(Ljava/lang/String;Lduj$b;Lduj$f;)Lduj$e;
-
streamAllRules
public static Stream<Map.Entry<GameRules.Key<?>,GameRules.Type<?>>> streamAllRules(FeatureSet enabledFeatures) - Mappings:
Namespace Name Mixin selector named streamAllRulesLnet/minecraft/world/GameRules;streamAllRules(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Ljava/util/stream/Stream;intermediary method_61725Lnet/minecraft/class_1928;method_61725(Lnet/minecraft/class_7699;)Ljava/util/stream/Stream;official aLduj;a(Ldfn;)Ljava/util/stream/Stream;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/world/GameRules;get(Lnet/minecraft/world/GameRules$Key;)Lnet/minecraft/world/GameRules$Rule;intermediary method_20746Lnet/minecraft/class_1928;method_20746(Lnet/minecraft/class_1928$class_4313;)Lnet/minecraft/class_1928$class_4315;official bLduj;b(Lduj$e;)Lduj$g;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbtLnet/minecraft/world/GameRules;toNbt()Lnet/minecraft/nbt/NbtCompound;intermediary method_8358Lnet/minecraft/class_1928;method_8358()Lnet/minecraft/class_2487;official aLduj;a()Lve;
-
load
private void load(com.mojang.serialization.DynamicLike<?> values) - Mappings:
Namespace Name Mixin selector named loadLnet/minecraft/world/GameRules;load(Lcom/mojang/serialization/DynamicLike;)Vintermediary method_8357Lnet/minecraft/class_1928;method_8357(Lcom/mojang/serialization/DynamicLike;)Vofficial aLduj;a(Lcom/mojang/serialization/DynamicLike;)V
-
copy
- Mappings:
Namespace Name Mixin selector named copyLnet/minecraft/world/GameRules;copy(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/world/GameRules;intermediary method_27325Lnet/minecraft/class_1928;method_27325(Lnet/minecraft/class_7699;)Lnet/minecraft/class_1928;official bLduj;b(Ldfn;)Lduj;
-
accept
Make the visitor visit all registered game rules.The visitation involves calling both
GameRules.Visitor.visit(GameRules.Key, GameRules.Type)andvisitXfor 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/GameRules;accept(Lnet/minecraft/world/GameRules$Visitor;)Vintermediary method_20744Lnet/minecraft/class_1928;method_20744(Lnet/minecraft/class_1928$class_4311;)Vofficial aLduj;a(Lduj$c;)V
-
accept
private <T extends GameRules.Rule<T>> void accept(GameRules.Visitor visitor, GameRules.Key<?> key, GameRules.Type<?> type) - Mappings:
Namespace Name Mixin selector named acceptLnet/minecraft/world/GameRules;accept(Lnet/minecraft/world/GameRules$Visitor;Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)Vintermediary method_20745Lnet/minecraft/class_1928;method_20745(Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)Vofficial aLduj;a(Lduj$c;Lduj$e;Lduj$f;)V
-
setAllValues
- Mappings:
Namespace Name Mixin selector named setAllValuesLnet/minecraft/world/GameRules;setAllValues(Lnet/minecraft/world/GameRules;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_27322Lnet/minecraft/class_1928;method_27322(Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)Vofficial aLduj;a(Lduj;Lnet/minecraft/server/MinecraftServer;)V
-
setValue
private <T extends GameRules.Rule<T>> void setValue(GameRules.Key<T> key, GameRules rules, @Nullable @Nullable MinecraftServer server) - Mappings:
Namespace Name Mixin selector named setValueLnet/minecraft/world/GameRules;setValue(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules;Lnet/minecraft/server/MinecraftServer;)Vintermediary method_27321Lnet/minecraft/class_1928;method_27321(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)Vofficial aLduj;a(Lduj$e;Lduj;Lnet/minecraft/server/MinecraftServer;)V
-
getBoolean
- Mappings:
Namespace Name Mixin selector named getBooleanLnet/minecraft/world/GameRules;getBoolean(Lnet/minecraft/world/GameRules$Key;)Zintermediary method_8355Lnet/minecraft/class_1928;method_8355(Lnet/minecraft/class_1928$class_4313;)Zofficial cLduj;c(Lduj$e;)Z
-
getInt
- Mappings:
Namespace Name Mixin selector named getIntLnet/minecraft/world/GameRules;getInt(Lnet/minecraft/world/GameRules$Key;)Iintermediary method_8356Lnet/minecraft/class_1928;method_8356(Lnet/minecraft/class_1928$class_4313;)Iofficial dLduj;d(Lduj$e;)I
-