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

    • INSTANCE

      private static final Console INSTANCE
      Mappings:
      Namespace Name Mixin selector
      official a Ltc;a:Ltc;
      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 Ltc;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

    • getInstance

      public static Console getInstance()
      Mappings:
      Namespace Name Mixin selector
      official h Ltc;h()Ltc;
      intermediary method_10790 Lnet/minecraft/class_808;method_10790()Lnet/minecraft/class_808;
      named getInstance Lnet/minecraft/server/command/Console;getInstance()Lnet/minecraft/server/command/Console;
    • destroy

      public void destroy()
      Mappings:
      Namespace Name Mixin selector
      official i Ltc;i()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 j Ltc;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;
    • getTranslationKey

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

      public Text method_6344()
      Specified by:
      method_6344 in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official e_ Lae;e_()Lho;
      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 Lae;a(Lho;)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 Lae;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
    • getBlockPos

      public BlockPos getBlockPos()
      Specified by:
      getBlockPos in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official c Lae;c()Ldt;
      intermediary method_4086 Lnet/minecraft/class_1061;method_4086()Lnet/minecraft/class_2552;
      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 Lae;d()Lbrw;
      intermediary method_10787 Lnet/minecraft/class_1061;method_10787()Lnet/minecraft/class_236;
      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 Lae;e()Laqu;
      intermediary method_5506 Lnet/minecraft/class_1061;method_5506()Lnet/minecraft/class_1150;
      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 Lae;f()Lwv;
      intermediary method_10788 Lnet/minecraft/class_1061;method_10788()Lnet/minecraft/class_864;
      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 t_ Lae;t_()Z
      intermediary method_10789 Lnet/minecraft/class_1061;method_10789()Z
      named sendCommandFeedback Lnet/minecraft/command/CommandSource;sendCommandFeedback()Z
    • method_10786

      public void method_10786(class_2599 class_2599, int int2)
      Specified by:
      method_10786 in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Lae;a(Lag;I)V
      intermediary method_10786 Lnet/minecraft/class_1061;method_10786(Lnet/minecraft/class_2599;I)V
      named method_10786 Lnet/minecraft/command/CommandSource;method_10786(Lnet/minecraft/class_2599;I)V