Package net.minecraft.world
Class CommandBlockExecutor
java.lang.Object
net.minecraft.world.CommandBlockExecutor
- All Implemented Interfaces:
CommandSource
public abstract class CommandBlockExecutor extends Object implements CommandSource
- Mappings:
Namespace Name official adcintermediary net/minecraft/class_87named net/minecraft/world/CommandBlockExecutor
-
Field Summary
Fields Modifier and Type Field Description private Stringcommandprivate CommandStatscommandStatsprivate static SimpleDateFormatDATE_FORMATprivate TextlastOutputprivate Stringnameprivate intsuccessCountprivate booleantrackOutput -
Constructor Summary
Constructors Constructor Description CommandBlockExecutor() -
Method Summary
Modifier and Type Method Description booleancanUseCommand(int permissionLevel, String commandLiteral)voidexecute(World world)voidfromTag(CompoundTag nbt)StringgetCommand()CommandStatsgetCommandStats()TextgetLastOutput()TextgetName()intgetSuccessCount()StringgetTranslationKey()abstract intgetType()booleaninteract(PlayerEntity player)booleanisTrackingOutput()abstract voidmarkDirty()booleansendCommandFeedback()voidsendMessage(Text text)voidsetCommand(String command)voidsetLastOutput(Text lastOutput)voidsetName(String name)voidsetStat(CommandStats.Type statsType, int value)voidsetTrackOutput(boolean trackOutput)voidtoTag(CompoundTag nbt)abstract voidwriteEntityId(ByteBuf byteBuf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.command.CommandSource
getBlockPos, getEntity, getPos, getWorld
-
Field Details
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official aLadc;a:Ljava/text/SimpleDateFormat;intermediary field_189Lnet/minecraft/class_87;field_189:Ljava/text/SimpleDateFormat;named DATE_FORMATLnet/minecraft/world/CommandBlockExecutor;DATE_FORMAT:Ljava/text/SimpleDateFormat;
-
successCount
private int successCount- Mappings:
Namespace Name Mixin selector official bLadc;b:Iintermediary field_190Lnet/minecraft/class_87;field_190:Inamed successCountLnet/minecraft/world/CommandBlockExecutor;successCount:I
-
trackOutput
private boolean trackOutput- Mappings:
Namespace Name Mixin selector official cLadc;c:Zintermediary field_191Lnet/minecraft/class_87;field_191:Znamed trackOutputLnet/minecraft/world/CommandBlockExecutor;trackOutput:Z
-
lastOutput
- Mappings:
Namespace Name Mixin selector official dLadc;d:Leu;intermediary field_192Lnet/minecraft/class_87;field_192:Lnet/minecraft/class_1444;named lastOutputLnet/minecraft/world/CommandBlockExecutor;lastOutput:Lnet/minecraft/text/Text;
-
command
- Mappings:
Namespace Name Mixin selector official eLadc;e:Ljava/lang/String;intermediary field_193Lnet/minecraft/class_87;field_193:Ljava/lang/String;named commandLnet/minecraft/world/CommandBlockExecutor;command:Ljava/lang/String;
-
name
- Mappings:
Namespace Name Mixin selector official fLadc;f:Ljava/lang/String;intermediary field_194Lnet/minecraft/class_87;field_194:Ljava/lang/String;named nameLnet/minecraft/world/CommandBlockExecutor;name:Ljava/lang/String;
-
commandStats
- Mappings:
Namespace Name Mixin selector official gLadc;g:Ln;intermediary field_195Lnet/minecraft/class_87;field_195:Lnet/minecraft/class_1685;named commandStatsLnet/minecraft/world/CommandBlockExecutor;commandStats:Lnet/minecraft/command/CommandStats;
-
-
Constructor Details
-
CommandBlockExecutor
public CommandBlockExecutor()
-
-
Method Details
-
getSuccessCount
public int getSuccessCount()- Mappings:
Namespace Name Mixin selector official jLadc;j()Iintermediary method_165Lnet/minecraft/class_87;method_165()Inamed getSuccessCountLnet/minecraft/world/CommandBlockExecutor;getSuccessCount()I
-
getLastOutput
- Mappings:
Namespace Name Mixin selector official kLadc;k()Leu;intermediary method_166Lnet/minecraft/class_87;method_166()Lnet/minecraft/class_1444;named getLastOutputLnet/minecraft/world/CommandBlockExecutor;getLastOutput()Lnet/minecraft/text/Text;
-
toTag
- Mappings:
Namespace Name Mixin selector official aLadc;a(Ldn;)Vintermediary method_155Lnet/minecraft/class_87;method_155(Lnet/minecraft/class_1405;)Vnamed toTagLnet/minecraft/world/CommandBlockExecutor;toTag(Lnet/minecraft/nbt/CompoundTag;)V
-
fromTag
- Mappings:
Namespace Name Mixin selector official bLadc;b(Ldn;)Vintermediary method_160Lnet/minecraft/class_87;method_160(Lnet/minecraft/class_1405;)Vnamed fromTagLnet/minecraft/world/CommandBlockExecutor;fromTag(Lnet/minecraft/nbt/CompoundTag;)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
-
setCommand
- Mappings:
Namespace Name Mixin selector official aLadc;a(Ljava/lang/String;)Vintermediary method_157Lnet/minecraft/class_87;method_157(Ljava/lang/String;)Vnamed setCommandLnet/minecraft/world/CommandBlockExecutor;setCommand(Ljava/lang/String;)V
-
getCommand
- Mappings:
Namespace Name Mixin selector official lLadc;l()Ljava/lang/String;intermediary method_167Lnet/minecraft/class_87;method_167()Ljava/lang/String;named getCommandLnet/minecraft/world/CommandBlockExecutor;getCommand()Ljava/lang/String;
-
execute
- Mappings:
Namespace Name Mixin selector official aLadc;a(Ladm;)Vintermediary method_154Lnet/minecraft/class_87;method_154(Lnet/minecraft/class_99;)Vnamed executeLnet/minecraft/world/CommandBlockExecutor;execute(Lnet/minecraft/world/World;)V
-
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
-
setName
- Mappings:
Namespace Name Mixin selector official bLadc;b(Ljava/lang/String;)Vintermediary method_162Lnet/minecraft/class_87;method_162(Ljava/lang/String;)Vnamed setNameLnet/minecraft/world/CommandBlockExecutor;setName(Ljava/lang/String;)V
-
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
-
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
-
markDirty
public abstract void markDirty()- Mappings:
Namespace Name Mixin selector official hLadc;h()Vintermediary method_163Lnet/minecraft/class_87;method_163()Vnamed markDirtyLnet/minecraft/world/CommandBlockExecutor;markDirty()V
-
getType
- Mappings:
Namespace Name Mixin selector official iLadc;i()Iintermediary method_164Lnet/minecraft/class_87;method_164()Inamed getTypeLnet/minecraft/world/CommandBlockExecutor;getType()I
-
writeEntityId
- Mappings:
Namespace Name Mixin selector official aLadc;a(Lio/netty/buffer/ByteBuf;)Vintermediary method_156Lnet/minecraft/class_87;method_156(Lio/netty/buffer/ByteBuf;)Vnamed writeEntityIdLnet/minecraft/world/CommandBlockExecutor;writeEntityId(Lio/netty/buffer/ByteBuf;)V
-
setLastOutput
- Mappings:
Namespace Name Mixin selector official bLadc;b(Leu;)Vintermediary method_161Lnet/minecraft/class_87;method_161(Lnet/minecraft/class_1444;)Vnamed setLastOutputLnet/minecraft/world/CommandBlockExecutor;setLastOutput(Lnet/minecraft/text/Text;)V
-
setTrackOutput
public void setTrackOutput(boolean trackOutput)- Mappings:
Namespace Name Mixin selector official aLadc;a(Z)Vintermediary method_159Lnet/minecraft/class_87;method_159(Z)Vnamed setTrackOutputLnet/minecraft/world/CommandBlockExecutor;setTrackOutput(Z)V
-
isTrackingOutput
public boolean isTrackingOutput()- Mappings:
Namespace Name Mixin selector official mLadc;m()Zintermediary method_168Lnet/minecraft/class_87;method_168()Znamed isTrackingOutputLnet/minecraft/world/CommandBlockExecutor;isTrackingOutput()Z
-
interact
- Mappings:
Namespace Name Mixin selector official aLadc;a(Lwn;)Zintermediary method_158Lnet/minecraft/class_87;method_158(Lnet/minecraft/class_1963;)Znamed interactLnet/minecraft/world/CommandBlockExecutor;interact(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getCommandStats
- Mappings:
Namespace Name Mixin selector official nLadc;n()Ln;intermediary method_169Lnet/minecraft/class_87;method_169()Lnet/minecraft/class_1685;named getCommandStatsLnet/minecraft/world/CommandBlockExecutor;getCommandStats()Lnet/minecraft/command/CommandStats;
-