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 nf
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 Lnf;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 Lnf;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 Lnf;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 Lnf;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 h_ Ln;h_()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 i_ Ln;i_()Lfb;
      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 Ln;a(Lfb;)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 Ln;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 Ln;c()Lco;
      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 Ln;d()Lbdw;
      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 Ln;e()Lajs;
      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 Ln;f()Lsn;
      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 g Ln;g()Z
      intermediary method_10789 Lnet/minecraft/class_1061;method_10789()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 Ln;a(Lo$a;I)V
      intermediary method_10786 Lnet/minecraft/class_1061;method_10786(Lnet/minecraft/class_2598$class_2599;I)V
      named setStat Lnet/minecraft/command/CommandSource;setStat(Lnet/minecraft/command/CommandStats$Type;I)V
    • getMinecraftServer

      public MinecraftServer getMinecraftServer()
      Specified by:
      getMinecraftServer in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official B_ Ln;B_()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;