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 px
intermediary net/minecraft/class_808
named net/minecraft/server/command/Console
  • Field Details

    • text

      private final StringBuffer text
      Mappings:
      Namespace Name Mixin selector
      official a Lpx;a: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;
    • field_13901

      private final MinecraftServer field_13901
      Mappings:
      Namespace Name Mixin selector
      official b Lpx;b:Lnet/minecraft/server/MinecraftServer;
      intermediary field_13901 Lnet/minecraft/class_808;field_13901:Lnet/minecraft/server/MinecraftServer;
      named field_13901 Lnet/minecraft/server/command/Console;field_13901:Lnet/minecraft/server/MinecraftServer;
  • Constructor Details

  • Method Details

    • destroy

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

      @Environment(SERVER) public String getTextAsString()
      Mappings:
      Namespace Name Mixin selector
      official j Lpx;j()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 h_ Lbn;h_()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;
    • sendMessage

      public void sendMessage(Text text)
      Specified by:
      sendMessage in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Lbn;a(Lhh;)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 Lbn;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
    • getWorld

      public World getWorld()
      Specified by:
      getWorld in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official e Lbn;e()Lamu;
      intermediary method_5506 Lnet/minecraft/class_1061;method_5506()Lnet/minecraft/class_1150;
      named getWorld Lnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;
    • sendCommandFeedback

      public boolean sendCommandFeedback()
      Specified by:
      sendCommandFeedback in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official g Lbn;g()Z
      intermediary method_10789 Lnet/minecraft/class_1061;method_10789()Z
      named sendCommandFeedback Lnet/minecraft/command/CommandSource;sendCommandFeedback()Z
    • getMinecraftServer

      public MinecraftServer getMinecraftServer()
      Specified by:
      getMinecraftServer in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official C_ Lbn;C_()Lnet/minecraft/server/MinecraftServer;
      intermediary method_12833 Lnet/minecraft/class_1061;method_12833()Lnet/minecraft/server/MinecraftServer;
      named getMinecraftServer Lnet/minecraft/command/CommandSource;getMinecraftServer()Lnet/minecraft/server/MinecraftServer;