Class Console

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

@Environment(SERVER) public class Console extends Object implements CommandSource
Mappings:
Namespace Name
official ni
intermediary net/minecraft/class_808
named net/minecraft/server/command/Console
  • Field Details

    • INSTANCE

      public static final Console INSTANCE
      Mappings:
      Namespace Name Mixin selector
      official a Lni;a:Lni;
      intermediary field_2927 Lnet/minecraft/class_808;field_2927:Lnet/minecraft/class_808;
      named INSTANCE Lnet/minecraft/server/command/Console;INSTANCE:Lnet/minecraft/server/command/Console;
    • text

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

    • Console

      public Console()
  • Method Details

    • destroy

      public void destroy()
      Mappings:
      Namespace Name Mixin selector
      official e Lni;e()V
      intermediary method_2218 Lnet/minecraft/class_808;method_2218()V
      named destroy Lnet/minecraft/server/command/Console;destroy()V
    • getTextAsString

      public String getTextAsString()
      Mappings:
      Namespace Name Mixin selector
      official f Lni;f()Ljava/lang/String;
      intermediary method_2219 Lnet/minecraft/class_808;method_2219()Ljava/lang/String;
      named getTextAsString Lnet/minecraft/server/command/Console;getTextAsString()Ljava/lang/String;
    • getTranslatedName

      public String getTranslatedName()
      Specified by:
      getTranslatedName in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official b_ Lac;b_()Ljava/lang/String;
      intermediary method_2518 Lnet/minecraft/class_1061;method_2518()Ljava/lang/String;
      named getTranslatedName Lnet/minecraft/command/CommandSource;getTranslatedName()Ljava/lang/String;
    • method_6344

      public Text method_6344()
      Specified by:
      method_6344 in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official c_ Lac;c_()Lez;
      intermediary method_6344 Lnet/minecraft/class_1061;method_6344()Lnet/minecraft/class_1982;
      named method_6344 Lnet/minecraft/command/CommandSource;method_6344()Lnet/minecraft/text/Text;
    • sendMessage

      public void sendMessage(Text text)
      Specified by:
      sendMessage in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Lac;a(Lez;)V
      intermediary method_5505 Lnet/minecraft/class_1061;method_5505(Lnet/minecraft/class_1982;)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 Lac;a(ILjava/lang/String;)Z
      intermediary method_3333 Lnet/minecraft/class_1061;method_3333(ILjava/lang/String;)Z
      named canUseCommand Lnet/minecraft/command/CommandSource;canUseCommand(ILjava/lang/String;)Z
    • method_4086

      public BlockPos method_4086()
      Specified by:
      method_4086 in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official f_ Lac;f_()Lr;
      intermediary method_4086 Lnet/minecraft/class_1061;method_4086()Lnet/minecraft/class_851;
      named method_4086 Lnet/minecraft/command/CommandSource;method_4086()Lnet/minecraft/util/math/BlockPos;
    • getWorld

      public World getWorld()
      Specified by:
      getWorld in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official d Lac;d()Lafm;
      intermediary method_5506 Lnet/minecraft/class_1061;method_5506()Lnet/minecraft/class_1150;
      named getWorld Lnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;