Class LazyContainer

java.lang.Object
net.minecraft.server.function.LazyContainer

public class LazyContainer extends Object
A lazy reference to another command function that may or may not exist.

Notice that such an instance does not refresh upon reloads and may become invalid.

Mappings:
Namespace Name
official dm
intermediary net/minecraft/class_2159
named net/minecraft/server/function/LazyContainer
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<LazyContainer> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a:Lcom/mojang/serialization/Codec;
      intermediary field_47409 Lnet/minecraft/class_2159;field_47409:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/server/function/LazyContainer;CODEC:Lcom/mojang/serialization/Codec;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official b Ldm;b:Lahg;
      intermediary field_9807 Lnet/minecraft/class_2159;field_9807:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/server/function/LazyContainer;id:Lnet/minecraft/util/Identifier;
    • initialized

      private boolean initialized
      Mappings:
      Namespace Name Mixin selector
      official c Ldm;c:Z
      intermediary field_9810 Lnet/minecraft/class_2159;field_9810:Z
      named initialized Lnet/minecraft/server/function/LazyContainer;initialized:Z
    • function

      Mappings:
      Namespace Name Mixin selector
      official d Ldm;d:Ljava/util/Optional;
      intermediary field_9808 Lnet/minecraft/class_2159;field_9808:Ljava/util/Optional;
      named function Lnet/minecraft/server/function/LazyContainer;function:Ljava/util/Optional;
  • Constructor Details

    • LazyContainer

      public LazyContainer(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldm;<init>(Lahg;)V
      intermediary <init> Lnet/minecraft/class_2159;<init>(Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/server/function/LazyContainer;<init>(Lnet/minecraft/util/Identifier;)V
  • Method Details

    • get

      public Optional<CommandFunction<ServerCommandSource>> get(CommandFunctionManager commandFunctionManager)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Lahu;)Ljava/util/Optional;
      intermediary method_9196 Lnet/minecraft/class_2159;method_9196(Lnet/minecraft/class_2991;)Ljava/util/Optional;
      named get Lnet/minecraft/server/function/LazyContainer;get(Lnet/minecraft/server/function/CommandFunctionManager;)Ljava/util/Optional;
    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a()Lahg;
      intermediary method_9197 Lnet/minecraft/class_2159;method_9197()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/server/function/LazyContainer;getId()Lnet/minecraft/util/Identifier;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ldm;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2159;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/server/function/LazyContainer;equals(Ljava/lang/Object;)Z