Package net.minecraft.world
Class CommandBlockExecutor
java.lang.Object
net.minecraft.world.CommandBlockExecutor
- All Implemented Interfaces:
CommandOutput
- Direct Known Subclasses:
CommandBlockMinecartEntity.CommandExecutor
A common logic for command-block behaviors shared by
command blocks and command block minecarts.
- Mappings:
Namespace Name named net/minecraft/world/CommandBlockExecutorintermediary net/minecraft/class_1918official dbe
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static final SimpleDateFormatprivate static final Textprivate longprivate intprivate booleanprivate booleanFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract Vec3dgetPos()abstract ServerCommandSourceintabstract ServerWorldgetWorld()interact(PlayerEntity player) abstract booleanbooleanabstract voidvoidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) voidsendMessage(Text message) Sends a system message.voidsetCommand(String command) voidsetCustomName(@Nullable Text customName) voidsetLastOutput(@Nullable Text lastOutput) voidsetSuccessCount(int successCount) voidsetTrackOutput(boolean trackOutput) booleanbooleanbooleanwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector named DATE_FORMATLnet/minecraft/world/CommandBlockExecutor;DATE_FORMAT:Ljava/text/SimpleDateFormat;intermediary field_9169Lnet/minecraft/class_1918;field_9169:Ljava/text/SimpleDateFormat;official bLdbe;b:Ljava/text/SimpleDateFormat;
-
DEFAULT_NAME
- Mappings:
Namespace Name Mixin selector named DEFAULT_NAMELnet/minecraft/world/CommandBlockExecutor;DEFAULT_NAME:Lnet/minecraft/text/Text;intermediary field_21515Lnet/minecraft/class_1918;field_21515:Lnet/minecraft/class_2561;official cLdbe;c:Lwu;
-
lastExecution
private long lastExecution- Mappings:
Namespace Name Mixin selector named lastExecutionLnet/minecraft/world/CommandBlockExecutor;lastExecution:Jintermediary field_9167Lnet/minecraft/class_1918;field_9167:Jofficial dLdbe;d:J
-
updateLastExecution
private boolean updateLastExecution- Mappings:
Namespace Name Mixin selector named updateLastExecutionLnet/minecraft/world/CommandBlockExecutor;updateLastExecution:Zintermediary field_9166Lnet/minecraft/class_1918;field_9166:Zofficial eLdbe;e:Z
-
successCount
private int successCount- Mappings:
Namespace Name Mixin selector named successCountLnet/minecraft/world/CommandBlockExecutor;successCount:Iintermediary field_9163Lnet/minecraft/class_1918;field_9163:Iofficial fLdbe;f:I
-
trackOutput
private boolean trackOutput- Mappings:
Namespace Name Mixin selector named trackOutputLnet/minecraft/world/CommandBlockExecutor;trackOutput:Zintermediary field_9164Lnet/minecraft/class_1918;field_9164:Zofficial gLdbe;g:Z
-
lastOutput
- Mappings:
Namespace Name Mixin selector named lastOutputLnet/minecraft/world/CommandBlockExecutor;lastOutput:Lnet/minecraft/text/Text;intermediary field_9165Lnet/minecraft/class_1918;field_9165:Lnet/minecraft/class_2561;official hLdbe;h:Lwu;
-
command
- Mappings:
Namespace Name Mixin selector named commandLnet/minecraft/world/CommandBlockExecutor;command:Ljava/lang/String;intermediary field_9168Lnet/minecraft/class_1918;field_9168:Ljava/lang/String;official iLdbe;i:Ljava/lang/String;
-
customName
- Mappings:
Namespace Name Mixin selector named customNameLnet/minecraft/world/CommandBlockExecutor;customName:Lnet/minecraft/text/Text;intermediary field_9162Lnet/minecraft/class_1918;field_9162:Lnet/minecraft/class_2561;official jLdbe;j:Lwu;
-
-
Constructor Details
-
CommandBlockExecutor
public CommandBlockExecutor()
-
-
Method Details
-
getSuccessCount
public int getSuccessCount()- Mappings:
Namespace Name Mixin selector named getSuccessCountLnet/minecraft/world/CommandBlockExecutor;getSuccessCount()Iintermediary method_8304Lnet/minecraft/class_1918;method_8304()Iofficial kLdbe;k()I
-
setSuccessCount
public void setSuccessCount(int successCount) - Mappings:
Namespace Name Mixin selector named setSuccessCountLnet/minecraft/world/CommandBlockExecutor;setSuccessCount(I)Vintermediary method_8298Lnet/minecraft/class_1918;method_8298(I)Vofficial aLdbe;a(I)V
-
getLastOutput
- Mappings:
Namespace Name Mixin selector named getLastOutputLnet/minecraft/world/CommandBlockExecutor;getLastOutput()Lnet/minecraft/text/Text;intermediary method_8292Lnet/minecraft/class_1918;method_8292()Lnet/minecraft/class_2561;official lLdbe;l()Lwu;
-
writeNbt
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/world/CommandBlockExecutor;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;intermediary method_8297Lnet/minecraft/class_1918;method_8297(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;official aLdbe;a(Ltx;Ljl$a;)Ltx;
-
readNbt
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/world/CommandBlockExecutor;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_8305Lnet/minecraft/class_1918;method_8305(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdbe;b(Ltx;Ljl$a;)V
-
setCommand
- Mappings:
Namespace Name Mixin selector named setCommandLnet/minecraft/world/CommandBlockExecutor;setCommand(Ljava/lang/String;)Vintermediary method_8286Lnet/minecraft/class_1918;method_8286(Ljava/lang/String;)Vofficial aLdbe;a(Ljava/lang/String;)V
-
getCommand
- Mappings:
Namespace Name Mixin selector named getCommandLnet/minecraft/world/CommandBlockExecutor;getCommand()Ljava/lang/String;intermediary method_8289Lnet/minecraft/class_1918;method_8289()Ljava/lang/String;official mLdbe;m()Ljava/lang/String;
-
execute
- Mappings:
Namespace Name Mixin selector named executeLnet/minecraft/world/CommandBlockExecutor;execute(Lnet/minecraft/world/World;)Zintermediary method_8301Lnet/minecraft/class_1918;method_8301(Lnet/minecraft/class_1937;)Zofficial aLdbe;a(Ldcd;)Z
-
getCustomName
- Mappings:
Namespace Name Mixin selector named getCustomNameLnet/minecraft/world/CommandBlockExecutor;getCustomName()Lnet/minecraft/text/Text;intermediary method_8299Lnet/minecraft/class_1918;method_8299()Lnet/minecraft/class_2561;official nLdbe;n()Lwu;
-
getCustomNameNullable
- Mappings:
Namespace Name Mixin selector named getCustomNameNullableLnet/minecraft/world/CommandBlockExecutor;getCustomNameNullable()Lnet/minecraft/text/Text;intermediary method_57558Lnet/minecraft/class_1918;method_57558()Lnet/minecraft/class_2561;official oLdbe;o()Lwu;
-
setCustomName
- Mappings:
Namespace Name Mixin selector named setCustomNameLnet/minecraft/world/CommandBlockExecutor;setCustomName(Lnet/minecraft/text/Text;)Vintermediary method_8290Lnet/minecraft/class_1918;method_8290(Lnet/minecraft/class_2561;)Vofficial bLdbe;b(Lwu;)V
-
sendMessage
Sends a system message.- Specified by:
sendMessagein interfaceCommandOutput- Implementation Note:
- The output location depends on the implementation; players will use the in-game chat, and others will output to the log.
- Mappings:
Namespace Name Mixin selector named sendMessageLnet/minecraft/server/command/CommandOutput;sendMessage(Lnet/minecraft/text/Text;)Vintermediary method_43496Lnet/minecraft/class_2165;method_43496(Lnet/minecraft/class_2561;)Vofficial aLep;a(Lwu;)V
-
getWorld
- Mappings:
Namespace Name Mixin selector named getWorldLnet/minecraft/world/CommandBlockExecutor;getWorld()Lnet/minecraft/server/world/ServerWorld;intermediary method_8293Lnet/minecraft/class_1918;method_8293()Lnet/minecraft/class_3218;official eLdbe;e()Laqk;
-
markDirty
public abstract void markDirty()- Mappings:
Namespace Name Mixin selector named markDirtyLnet/minecraft/world/CommandBlockExecutor;markDirty()Vintermediary method_8295Lnet/minecraft/class_1918;method_8295()Vofficial fLdbe;f()V
-
setLastOutput
- Mappings:
Namespace Name Mixin selector named setLastOutputLnet/minecraft/world/CommandBlockExecutor;setLastOutput(Lnet/minecraft/text/Text;)Vintermediary method_8291Lnet/minecraft/class_1918;method_8291(Lnet/minecraft/class_2561;)Vofficial cLdbe;c(Lwu;)V
-
setTrackOutput
public void setTrackOutput(boolean trackOutput) - Mappings:
Namespace Name Mixin selector named setTrackOutputLnet/minecraft/world/CommandBlockExecutor;setTrackOutput(Z)Vintermediary method_8287Lnet/minecraft/class_1918;method_8287(Z)Vofficial aLdbe;a(Z)V
-
isTrackingOutput
public boolean isTrackingOutput()- Mappings:
Namespace Name Mixin selector named isTrackingOutputLnet/minecraft/world/CommandBlockExecutor;isTrackingOutput()Zintermediary method_8296Lnet/minecraft/class_1918;method_8296()Zofficial pLdbe;p()Z
-
interact
- Mappings:
Namespace Name Mixin selector named interactLnet/minecraft/world/CommandBlockExecutor;interact(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;intermediary method_8288Lnet/minecraft/class_1918;method_8288(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;official aLdbe;a(Lcmh;)Lbqd;
-
getPos
- Mappings:
Namespace Name Mixin selector named getPosLnet/minecraft/world/CommandBlockExecutor;getPos()Lnet/minecraft/util/math/Vec3d;intermediary method_8300Lnet/minecraft/class_1918;method_8300()Lnet/minecraft/class_243;official gLdbe;g()Levz;
-
getSource
- Mappings:
Namespace Name Mixin selector named getSourceLnet/minecraft/world/CommandBlockExecutor;getSource()Lnet/minecraft/server/command/ServerCommandSource;intermediary method_8303Lnet/minecraft/class_1918;method_8303()Lnet/minecraft/class_2168;official iLdbe;i()Leq;
-
shouldReceiveFeedback
public boolean shouldReceiveFeedback()- Specified by:
shouldReceiveFeedbackin interfaceCommandOutput- Mappings:
Namespace Name Mixin selector named shouldReceiveFeedbackLnet/minecraft/server/command/CommandOutput;shouldReceiveFeedback()Zintermediary method_9200Lnet/minecraft/class_2165;method_9200()Zofficial l_Lep;l_()Z
-
shouldTrackOutput
public boolean shouldTrackOutput()- Specified by:
shouldTrackOutputin interfaceCommandOutput- Mappings:
Namespace Name Mixin selector named shouldTrackOutputLnet/minecraft/server/command/CommandOutput;shouldTrackOutput()Zintermediary method_9202Lnet/minecraft/class_2165;method_9202()Zofficial w_Lep;w_()Z
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps()- Specified by:
shouldBroadcastConsoleToOpsin interfaceCommandOutput- Mappings:
Namespace Name Mixin selector named shouldBroadcastConsoleToOpsLnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Zintermediary method_9201Lnet/minecraft/class_2165;method_9201()Zofficial U_Lep;U_()Z
-
isEditable
public abstract boolean isEditable()- Mappings:
Namespace Name Mixin selector named isEditableLnet/minecraft/world/CommandBlockExecutor;isEditable()Zintermediary method_52175Lnet/minecraft/class_1918;method_52175()Zofficial jLdbe;j()Z
-