Class Console

java.lang.Object
net.minecraft.server.command.Console
All Implemented Interfaces:
CommandSource

public class Console
extends Object
implements CommandSource
Mappings:
Namespace Name
official mj
intermediary net/minecraft/class_1669
named net/minecraft/server/command/Console
  • Field Details

    • INSTANCE

      private static final Console INSTANCE
      Mappings:
      Namespace Name Mixin selector
      official a Lmj;a:Lmj;
      intermediary field_6844 Lnet/minecraft/class_1669;field_6844:Lnet/minecraft/class_1669;
      named INSTANCE Lnet/minecraft/server/command/Console;INSTANCE:Lnet/minecraft/server/command/Console;
    • text

      private StringBuffer text
      Mappings:
      Namespace Name Mixin selector
      official b Lmj;b:Ljava/lang/StringBuffer;
      intermediary field_6845 Lnet/minecraft/class_1669;field_6845:Ljava/lang/StringBuffer;
      named text Lnet/minecraft/server/command/Console;text:Ljava/lang/StringBuffer;
  • Constructor Details

    • Console

      public Console()
  • Method Details

    • getInstance

      @Environment(SERVER) public static Console getInstance()
      Mappings:
      Namespace Name Mixin selector
      official h Lmj;h()Lmj;
      intermediary method_6303 Lnet/minecraft/class_1669;method_6303()Lnet/minecraft/class_1669;
      named getInstance Lnet/minecraft/server/command/Console;getInstance()Lnet/minecraft/server/command/Console;
    • destroy

      @Environment(SERVER) public void destroy()
      Mappings:
      Namespace Name Mixin selector
      official i Lmj;i()V
      intermediary method_6304 Lnet/minecraft/class_1669;method_6304()V
      named destroy Lnet/minecraft/server/command/Console;destroy()V
    • getTextAsString

      @Environment(SERVER) public String getTextAsString()
      Mappings:
      Namespace Name Mixin selector
      official j Lmj;j()Ljava/lang/String;
      intermediary method_6305 Lnet/minecraft/class_1669;method_6305()Ljava/lang/String;
      named getTextAsString Lnet/minecraft/server/command/Console;getTextAsString()Ljava/lang/String;
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official method_6261 Lm;method_6261()Ljava/lang/String;
      intermediary method_6261 Lnet/minecraft/class_1659;method_6261()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/command/CommandSource;getTranslationKey()Ljava/lang/String;
    • getName

      public Text getName()
      Specified by:
      getName in interface CommandSource
    • sendMessage

      public void sendMessage​(Text text)
      Specified by:
      sendMessage in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Lm;a(Leu;)V
      intermediary method_6256 Lnet/minecraft/class_1659;method_6256(Lnet/minecraft/class_1444;)V
      named sendMessage Lnet/minecraft/command/CommandSource;sendMessage(Lnet/minecraft/text/Text;)V
    • canUseCommand

      public boolean canUseCommand​(int permissionLevel, String commandLiteral)
      Specified by:
      canUseCommand in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Lm;a(ILjava/lang/String;)Z
      intermediary method_6255 Lnet/minecraft/class_1659;method_6255(ILjava/lang/String;)Z
      named canUseCommand Lnet/minecraft/command/CommandSource;canUseCommand(ILjava/lang/String;)Z
    • getBlockPos

      public BlockPos getBlockPos()
      Specified by:
      getBlockPos in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official c Lm;c()Lcj;
      intermediary method_6258 Lnet/minecraft/class_1659;method_6258()Lnet/minecraft/class_1372;
      named getBlockPos Lnet/minecraft/command/CommandSource;getBlockPos()Lnet/minecraft/util/math/BlockPos;
    • getPos

      public Vec3d getPos()
      Specified by:
      getPos in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official d Lm;d()Laui;
      intermediary method_6259 Lnet/minecraft/class_1659;method_6259()Lnet/minecraft/class_649;
      named getPos Lnet/minecraft/command/CommandSource;getPos()Lnet/minecraft/util/math/Vec3d;
    • getWorld

      public World getWorld()
      Specified by:
      getWorld in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official e Lm;e()Ladm;
      intermediary method_6260 Lnet/minecraft/class_1659;method_6260()Lnet/minecraft/class_99;
      named getWorld Lnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;
    • getEntity

      public Entity getEntity()
      Specified by:
      getEntity in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official f Lm;f()Lpk;
      intermediary method_6262 Lnet/minecraft/class_1659;method_6262()Lnet/minecraft/class_1745;
      named getEntity Lnet/minecraft/command/CommandSource;getEntity()Lnet/minecraft/entity/Entity;
    • sendCommandFeedback

      public boolean sendCommandFeedback()
      Specified by:
      sendCommandFeedback in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official u_ Lm;u_()Z
      intermediary method_6263 Lnet/minecraft/class_1659;method_6263()Z
      named sendCommandFeedback Lnet/minecraft/command/CommandSource;sendCommandFeedback()Z
    • setStat

      public void setStat​(CommandStats.Type statsType, int value)
      Specified by:
      setStat in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Lm;a(Ln$a;I)V
      intermediary method_6257 Lnet/minecraft/class_1659;method_6257(Lnet/minecraft/class_1685$class_1686;I)V
      named setStat Lnet/minecraft/command/CommandSource;setStat(Lnet/minecraft/command/CommandStats$Type;I)V