mirror of https://github.com/FabricMC/yarn.git
213 lines
10 KiB
Plaintext
213 lines
10 KiB
Plaintext
CLASS net/minecraft/class_1928 net/minecraft/world/GameRules
|
|
FIELD field_19388 DO_MOB_GRIEFING Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether mobs can modify the world.
|
|
COMMENT
|
|
COMMENT <p>Generally one is expected to test this rule before an entity modifies the world.
|
|
COMMENT
|
|
COMMENT <p>In vanilla, this includes:
|
|
COMMENT <ul>
|
|
COMMENT <li>Whether creeper explosions destroy blocks
|
|
COMMENT <li>Whether a zombie can break down a door
|
|
COMMENT <li>Whether a wither killing an entity will place or drop a wither rose
|
|
COMMENT </ul>
|
|
FIELD field_19389 KEEP_INVENTORY Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether player inventories should be persist through respawning.
|
|
FIELD field_19390 DO_MOB_SPAWNING Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether mobs can spawn naturally.
|
|
FIELD field_19391 DO_MOB_LOOT Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether mobs should drop loot on death.
|
|
FIELD field_19392 DO_TILE_DROPS Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether blocks should drop their items when broken.
|
|
FIELD field_19401 REDUCED_DEBUG_INFO Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether clients' {@linkplain net.minecraft.client.gui.hud.DebugHud debug HUD}s show reduced information.
|
|
COMMENT
|
|
COMMENT <p>When the value of this rule is changed, all connected clients will be notified to update their display.
|
|
COMMENT In vanilla, this includes the visibility of coordinates on the clients' debug HUDs.
|
|
FIELD field_19405 MAX_ENTITY_CRAMMING Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates the number of entities that can be crammed into a block space before they incur cramming damage.
|
|
FIELD field_19409 ANNOUNCE_ADVANCEMENTS Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether a player's advancements should be announced in chat.
|
|
FIELD field_19410 LOGGER Lorg/apache/logging/log4j/Logger;
|
|
FIELD field_19422 DISABLE_RAIDS Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether raids should occur.
|
|
COMMENT
|
|
COMMENT <p>If this rule is set to {@code true} while raids are occurring, the raids will be stopped.
|
|
FIELD field_20638 DO_IMMEDIATE_RESPAWN Lnet/minecraft/class_1928$class_4313;
|
|
COMMENT A {@linkplain Rule game rule} which regulates whether a player should immediately respawn upon death.
|
|
FIELD field_30963 DEFAULT_RANDOM_TICK_SPEED I
|
|
FIELD field_9196 rules Ljava/util/Map;
|
|
FIELD field_9197 RULE_TYPES Ljava/util/Map;
|
|
METHOD <init> (Ljava/util/Map;)V
|
|
ARG 1 rules
|
|
METHOD method_20744 accept (Lnet/minecraft/class_1928$class_4311;)V
|
|
COMMENT Make the visitor visit all registered game rules.
|
|
COMMENT
|
|
COMMENT <p>The visitation involves calling both {@link Visitor#visit(GameRules.Key, GameRules.Type)} and {@code visitX} for every game rule, where X is the current rule's concrete type such as a boolean.
|
|
ARG 0 visitor
|
|
METHOD method_20745 accept (Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
|
|
ARG 0 consumer
|
|
ARG 1 key
|
|
ARG 2 type
|
|
METHOD method_20746 get (Lnet/minecraft/class_1928$class_4313;)Lnet/minecraft/class_1928$class_4315;
|
|
ARG 1 key
|
|
METHOD method_20747 (Lcom/mojang/serialization/DynamicLike;Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4315;)V
|
|
ARG 1 key
|
|
ARG 2 rule
|
|
METHOD method_20748 (Ljava/util/Map$Entry;)Lnet/minecraft/class_1928$class_4315;
|
|
ARG 0 e
|
|
METHOD method_20750 (Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
|
|
ARG 1 key
|
|
ARG 2 type
|
|
METHOD method_20751 (Lnet/minecraft/class_2487;Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4315;)V
|
|
ARG 1 key
|
|
ARG 2 rule
|
|
METHOD method_20752 (Lnet/minecraft/class_1928$class_4313;)Ljava/lang/String;
|
|
ARG 0 key
|
|
METHOD method_22386 (Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1928$class_4310;)V
|
|
ARG 0 server
|
|
ARG 1 rule
|
|
METHOD method_27321 setValue (Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V
|
|
ARG 1 key
|
|
ARG 2 rules
|
|
ARG 3 server
|
|
METHOD method_27322 setAllValues (Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V
|
|
ARG 1 rules
|
|
ARG 2 server
|
|
METHOD method_27323 (Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1928$class_4313;)V
|
|
ARG 3 key
|
|
METHOD method_27325 copy ()Lnet/minecraft/class_1928;
|
|
METHOD method_8355 getBoolean (Lnet/minecraft/class_1928$class_4313;)Z
|
|
ARG 1 rule
|
|
METHOD method_8356 getInt (Lnet/minecraft/class_1928$class_4313;)I
|
|
ARG 1 rule
|
|
METHOD method_8357 load (Lcom/mojang/serialization/DynamicLike;)V
|
|
METHOD method_8358 toNbt ()Lnet/minecraft/class_2487;
|
|
METHOD method_8359 register (Ljava/lang/String;Lnet/minecraft/class_1928$class_5198;Lnet/minecraft/class_1928$class_4314;)Lnet/minecraft/class_1928$class_4313;
|
|
ARG 0 name
|
|
ARG 1 category
|
|
ARG 2 type
|
|
METHOD method_8361 (Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1928$class_4310;)V
|
|
ARG 0 server
|
|
ARG 1 rule
|
|
CLASS class_4310 BooleanRule
|
|
FIELD field_19411 value Z
|
|
METHOD <init> (Lnet/minecraft/class_1928$class_4314;Z)V
|
|
ARG 1 type
|
|
ARG 2 initialValue
|
|
METHOD method_20753 get ()Z
|
|
METHOD method_20754 (Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1928$class_4310;)V
|
|
ARG 0 server
|
|
ARG 1 rule
|
|
METHOD method_20756 (ZLnet/minecraft/class_1928$class_4314;)Lnet/minecraft/class_1928$class_4310;
|
|
ARG 1 type
|
|
METHOD method_20758 set (ZLnet/minecraft/server/MinecraftServer;)V
|
|
ARG 1 value
|
|
ARG 2 server
|
|
METHOD method_20759 create (Z)Lnet/minecraft/class_1928$class_4314;
|
|
ARG 0 initialValue
|
|
METHOD method_20760 create (ZLjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;
|
|
ARG 0 initialValue
|
|
ARG 1 changeCallback
|
|
CLASS class_4311 Visitor
|
|
COMMENT A visitor used to visit all game rules.
|
|
METHOD method_20762 visit (Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
|
|
COMMENT Visit a game rule.
|
|
COMMENT
|
|
COMMENT <p>It is expected all game rules regardless of type will be visited using this method.
|
|
ARG 1 key
|
|
ARG 2 type
|
|
METHOD method_27329 visitBoolean (Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
|
|
COMMENT Visit a boolean rule.
|
|
COMMENT
|
|
COMMENT <p>Note {@link #visit(GameRules.Key, GameRules.Type)} will be called before this method.
|
|
ARG 1 key
|
|
ARG 2 type
|
|
METHOD method_27330 visitInt (Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
|
|
COMMENT Visit an integer rule.
|
|
COMMENT
|
|
COMMENT <p>Note {@link #visit(GameRules.Key, GameRules.Type)} will be called before this method.
|
|
ARG 1 key
|
|
ARG 2 type
|
|
CLASS class_4312 IntRule
|
|
FIELD field_19412 value I
|
|
METHOD <init> (Lnet/minecraft/class_1928$class_4314;I)V
|
|
ARG 1 rule
|
|
ARG 2 initialValue
|
|
METHOD method_20763 get ()I
|
|
METHOD method_20765 (ILnet/minecraft/class_1928$class_4314;)Lnet/minecraft/class_1928$class_4312;
|
|
ARG 1 type
|
|
METHOD method_20766 create (ILjava/util/function/BiConsumer;)Lnet/minecraft/class_1928$class_4314;
|
|
ARG 0 initialValue
|
|
ARG 1 changeCallback
|
|
METHOD method_20767 (Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1928$class_4312;)V
|
|
ARG 0 server
|
|
ARG 1 rule
|
|
METHOD method_20768 create (I)Lnet/minecraft/class_1928$class_4314;
|
|
ARG 0 initialValue
|
|
METHOD method_20769 parseInt (Ljava/lang/String;)I
|
|
ARG 0 input
|
|
METHOD method_27332 validate (Ljava/lang/String;)Z
|
|
COMMENT Validates that an input is valid for this rule.
|
|
ARG 1 input
|
|
METHOD method_35236 set (ILnet/minecraft/server/MinecraftServer;)V
|
|
ARG 1 value
|
|
ARG 2 server
|
|
CLASS class_4313 Key
|
|
FIELD field_19413 name Ljava/lang/String;
|
|
FIELD field_24103 category Lnet/minecraft/class_1928$class_5198;
|
|
METHOD <init> (Ljava/lang/String;Lnet/minecraft/class_1928$class_5198;)V
|
|
ARG 1 name
|
|
ARG 2 category
|
|
METHOD equals (Ljava/lang/Object;)Z
|
|
ARG 1 o
|
|
METHOD method_20771 getName ()Ljava/lang/String;
|
|
METHOD method_27334 getTranslationKey ()Ljava/lang/String;
|
|
METHOD method_27335 getCategory ()Lnet/minecraft/class_1928$class_5198;
|
|
CLASS class_4314 Type
|
|
FIELD field_19414 argumentType Ljava/util/function/Supplier;
|
|
FIELD field_19415 ruleFactory Ljava/util/function/Function;
|
|
FIELD field_19416 changeCallback Ljava/util/function/BiConsumer;
|
|
FIELD field_24104 ruleAcceptor Lnet/minecraft/class_1928$class_5199;
|
|
METHOD <init> (Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/BiConsumer;Lnet/minecraft/class_1928$class_5199;)V
|
|
ARG 1 argumentType
|
|
ARG 2 ruleFactory
|
|
ARG 3 changeCallback
|
|
ARG 4 ruleAcceptor
|
|
METHOD method_20773 createRule ()Lnet/minecraft/class_1928$class_4315;
|
|
METHOD method_20775 argument (Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
|
|
ARG 1 name
|
|
METHOD method_27336 accept (Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;)V
|
|
ARG 1 consumer
|
|
ARG 2 key
|
|
CLASS class_4315 Rule
|
|
FIELD field_19417 type Lnet/minecraft/class_1928$class_4314;
|
|
METHOD <init> (Lnet/minecraft/class_1928$class_4314;)V
|
|
ARG 1 type
|
|
METHOD method_20776 setFromArgument (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
|
|
ARG 1 context
|
|
ARG 2 name
|
|
METHOD method_20777 deserialize (Ljava/lang/String;)V
|
|
ARG 1 value
|
|
METHOD method_20778 changed (Lnet/minecraft/server/MinecraftServer;)V
|
|
ARG 1 server
|
|
METHOD method_20779 serialize ()Ljava/lang/String;
|
|
METHOD method_20780 set (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)V
|
|
ARG 1 context
|
|
ARG 2 name
|
|
METHOD method_20781 getCommandResult ()I
|
|
METHOD method_20782 getThis ()Lnet/minecraft/class_1928$class_4315;
|
|
METHOD method_27337 setValue (Lnet/minecraft/class_1928$class_4315;Lnet/minecraft/server/MinecraftServer;)V
|
|
ARG 1 rule
|
|
ARG 2 server
|
|
METHOD method_27338 copy ()Lnet/minecraft/class_1928$class_4315;
|
|
CLASS class_5198 Category
|
|
FIELD field_24101 category Ljava/lang/String;
|
|
METHOD <init> (Ljava/lang/String;ILjava/lang/String;)V
|
|
ARG 3 category
|
|
METHOD method_27328 getCategory ()Ljava/lang/String;
|
|
CLASS class_5199 Acceptor
|
|
METHOD call (Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
|
|
ARG 1 consumer
|
|
ARG 2 key
|
|
ARG 3 type
|