yarn/mappings/net/minecraft/util/registry/MutableRegistry.mapping

24 lines
1.2 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
ARG 4 lifecycle
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.
ARG 1 rawId
ARG 2 key
ARG 3 newEntry
ARG 4 lifecycle
METHOD method_35863 isEmpty ()Z