mirror of https://github.com/FabricMC/yarn.git
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
CLASS net/minecraft/class_2385 net/minecraft/util/registry/MutableRegistry
|
|
METHOD method_10272 add (Lnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Ljava/lang/Object;
|
|
ARG 1 key
|
|
ARG 2 entry
|
|
ARG 3 lifecycle
|
|
METHOD method_10273 set (ILnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Ljava/lang/Object;
|
|
ARG 1 rawId
|
|
ARG 2 key
|
|
ARG 3 entry
|
|
METHOD method_31062 replace (Ljava/util/OptionalInt;Lnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Ljava/lang/Object;
|
|
COMMENT If the given key is already present in the registry, replaces the entry associated with the given
|
|
COMMENT key with the new entry. This method asserts that the raw ID is equal to the value already in
|
|
COMMENT the registry. The raw ID not being present may lead to buggy behavior.
|
|
COMMENT
|
|
COMMENT <p>If the given key is not already present in the registry, adds the entry to the registry. If
|
|
COMMENT {@code rawId} is present, then this method gives the entry this raw ID. Otherwise, uses the
|
|
COMMENT next available ID.</p>
|
|
ARG 1 rawId
|
|
ARG 2 key
|
|
ARG 3 newEntry
|