Package net.minecraft.server.command
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 mjintermediary net/minecraft/class_1669named net/minecraft/server/command/Console
-
Field Summary
Fields Modifier and Type Field Description private static ConsoleINSTANCEprivate StringBuffertext -
Constructor Summary
Constructors Constructor Description Console() -
Method Summary
Modifier and Type Method Description booleancanUseCommand(int permissionLevel, String commandLiteral)voiddestroy()BlockPosgetBlockPos()EntitygetEntity()static ConsolegetInstance()TextgetName()Vec3dgetPos()StringgetTextAsString()StringgetTranslationKey()WorldgetWorld()booleansendCommandFeedback()voidsendMessage(Text text)voidsetStat(CommandStats.Type statsType, int value)
-
Field Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official aLmj;a:Lmj;intermediary field_6844Lnet/minecraft/class_1669;field_6844:Lnet/minecraft/class_1669;named INSTANCELnet/minecraft/server/command/Console;INSTANCE:Lnet/minecraft/server/command/Console;
-
text
- Mappings:
Namespace Name Mixin selector official bLmj;b:Ljava/lang/StringBuffer;intermediary field_6845Lnet/minecraft/class_1669;field_6845:Ljava/lang/StringBuffer;named textLnet/minecraft/server/command/Console;text:Ljava/lang/StringBuffer;
-
-
Constructor Details
-
Console
public Console()
-
-
Method Details
-
getInstance
- Mappings:
Namespace Name Mixin selector official hLmj;h()Lmj;intermediary method_6303Lnet/minecraft/class_1669;method_6303()Lnet/minecraft/class_1669;named getInstanceLnet/minecraft/server/command/Console;getInstance()Lnet/minecraft/server/command/Console;
-
destroy
- Mappings:
Namespace Name Mixin selector official iLmj;i()Vintermediary method_6304Lnet/minecraft/class_1669;method_6304()Vnamed destroyLnet/minecraft/server/command/Console;destroy()V
-
getTextAsString
- Mappings:
Namespace Name Mixin selector official jLmj;j()Ljava/lang/String;intermediary method_6305Lnet/minecraft/class_1669;method_6305()Ljava/lang/String;named getTextAsStringLnet/minecraft/server/command/Console;getTextAsString()Ljava/lang/String;
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official method_6261Lm;method_6261()Ljava/lang/String;intermediary method_6261Lnet/minecraft/class_1659;method_6261()Ljava/lang/String;named getTranslationKeyLnet/minecraft/command/CommandSource;getTranslationKey()Ljava/lang/String;
-
getName
- Specified by:
getNamein interfaceCommandSource
-
sendMessage
- Specified by:
sendMessagein interfaceCommandSource- Mappings:
Namespace Name Mixin selector official aLm;a(Leu;)Vintermediary method_6256Lnet/minecraft/class_1659;method_6256(Lnet/minecraft/class_1444;)Vnamed sendMessageLnet/minecraft/command/CommandSource;sendMessage(Lnet/minecraft/text/Text;)V
-
canUseCommand
- Specified by:
canUseCommandin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official aLm;a(ILjava/lang/String;)Zintermediary method_6255Lnet/minecraft/class_1659;method_6255(ILjava/lang/String;)Znamed canUseCommandLnet/minecraft/command/CommandSource;canUseCommand(ILjava/lang/String;)Z
-
getBlockPos
- Specified by:
getBlockPosin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official cLm;c()Lcj;intermediary method_6258Lnet/minecraft/class_1659;method_6258()Lnet/minecraft/class_1372;named getBlockPosLnet/minecraft/command/CommandSource;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
getPos
- Specified by:
getPosin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official dLm;d()Laui;intermediary method_6259Lnet/minecraft/class_1659;method_6259()Lnet/minecraft/class_649;named getPosLnet/minecraft/command/CommandSource;getPos()Lnet/minecraft/util/math/Vec3d;
-
getWorld
- Specified by:
getWorldin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official eLm;e()Ladm;intermediary method_6260Lnet/minecraft/class_1659;method_6260()Lnet/minecraft/class_99;named getWorldLnet/minecraft/command/CommandSource;getWorld()Lnet/minecraft/world/World;
-
getEntity
- Specified by:
getEntityin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official fLm;f()Lpk;intermediary method_6262Lnet/minecraft/class_1659;method_6262()Lnet/minecraft/class_1745;named getEntityLnet/minecraft/command/CommandSource;getEntity()Lnet/minecraft/entity/Entity;
-
sendCommandFeedback
public boolean sendCommandFeedback()- Specified by:
sendCommandFeedbackin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official u_Lm;u_()Zintermediary method_6263Lnet/minecraft/class_1659;method_6263()Znamed sendCommandFeedbackLnet/minecraft/command/CommandSource;sendCommandFeedback()Z
-
setStat
- Specified by:
setStatin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official aLm;a(Ln$a;I)Vintermediary method_6257Lnet/minecraft/class_1659;method_6257(Lnet/minecraft/class_1685$class_1686;I)Vnamed setStatLnet/minecraft/command/CommandSource;setStat(Lnet/minecraft/command/CommandStats$Type;I)V
-