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
named net/minecraft/server/function/LazyContainer
intermediary net/minecraft/class_2159
official eo
  • Field Details

    • CODEC

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

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

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

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

    • LazyContainer

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

    • get

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

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

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