Package net.minecraft.world
Class CommandBlockExecutor
java.lang.Object
net.minecraft.world.CommandBlockExecutor
- 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 dtm
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOutput(ServerWorld serverWorld) booleanexecute(ServerWorld world) getName()abstract ServerCommandSourcegetSource(ServerWorld world, CommandOutput output) intabstract booleanbooleanabstract voidmarkDirty(ServerWorld world) voidvoidsetCommand(String command) voidsetCustomName(@Nullable Text customName) voidsetLastOutput(@Nullable Text lastOutput) voidsetSuccessCount(int successCount) voidsetTrackOutput(boolean trackOutput) void
-
Field Details
-
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 aLdtm;a:Lym;
-
DEFAULT_LAST_EXECUTION
private static final int DEFAULT_LAST_EXECUTION- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_LAST_EXECUTIONLnet/minecraft/world/CommandBlockExecutor;DEFAULT_LAST_EXECUTION:Iintermediary field_57756Lnet/minecraft/class_1918;field_57756:Iofficial bLdtm;b:I
-
lastExecution
private long lastExecution- Mappings:
Namespace Name Mixin selector named lastExecutionLnet/minecraft/world/CommandBlockExecutor;lastExecution:Jintermediary field_9167Lnet/minecraft/class_1918;field_9167:Jofficial cLdtm;c: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 dLdtm;d: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 eLdtm;e: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 fLdtm;f: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 gLdtm;g:Lym;
-
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 hLdtm;h: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 iLdtm;i:Lym;
-
-
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 bLdtm;b()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 aLdtm;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 cLdtm;c()Lym;
-
writeData
- Mappings:
Namespace Name Mixin selector named writeDataLnet/minecraft/world/CommandBlockExecutor;writeData(Lnet/minecraft/storage/WriteView;)Vintermediary method_8297Lnet/minecraft/class_1918;method_8297(Lnet/minecraft/class_11372;)Vofficial aLdtm;a(Lflm;)V
-
readData
- Mappings:
Namespace Name Mixin selector named readDataLnet/minecraft/world/CommandBlockExecutor;readData(Lnet/minecraft/storage/ReadView;)Vintermediary method_8305Lnet/minecraft/class_1918;method_8305(Lnet/minecraft/class_11368;)Vofficial aLdtm;a(Lflk;)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 aLdtm;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 dLdtm;d()Ljava/lang/String;
-
execute
- Mappings:
Namespace Name Mixin selector named executeLnet/minecraft/world/CommandBlockExecutor;execute(Lnet/minecraft/server/world/ServerWorld;)Zintermediary method_8301Lnet/minecraft/class_1918;method_8301(Lnet/minecraft/class_3218;)Zofficial bLdtm;b(Laxl;)Z
-
createOutput
@Nullable private @Nullable CommandBlockExecutor.CommandBlockOutput createOutput(ServerWorld serverWorld) - Mappings:
Namespace Name Mixin selector named createOutputLnet/minecraft/world/CommandBlockExecutor;createOutput(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/world/CommandBlockExecutor$CommandBlockOutput;intermediary method_74026Lnet/minecraft/class_1918;method_74026(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1918$class_11874;official cLdtm;c(Laxl;)Ldtm$a;
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/world/CommandBlockExecutor;getName()Lnet/minecraft/text/Text;intermediary method_8299Lnet/minecraft/class_1918;method_8299()Lnet/minecraft/class_2561;official eLdtm;e()Lym;
-
getCustomName
- Mappings:
Namespace Name Mixin selector named getCustomNameLnet/minecraft/world/CommandBlockExecutor;getCustomName()Lnet/minecraft/text/Text;intermediary method_57558Lnet/minecraft/class_1918;method_57558()Lnet/minecraft/class_2561;official fLdtm;f()Lym;
-
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 aLdtm;a(Lym;)V
-
markDirty
- Mappings:
Namespace Name Mixin selector named markDirtyLnet/minecraft/world/CommandBlockExecutor;markDirty(Lnet/minecraft/server/world/ServerWorld;)Vintermediary method_8295Lnet/minecraft/class_1918;method_8295(Lnet/minecraft/class_3218;)Vofficial aLdtm;a(Laxl;)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 bLdtm;b(Lym;)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 aLdtm;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 gLdtm;g()Z
-
getSource
- Mappings:
Namespace Name Mixin selector named getSourceLnet/minecraft/world/CommandBlockExecutor;getSource(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/server/command/CommandOutput;)Lnet/minecraft/server/command/ServerCommandSource;intermediary method_8303Lnet/minecraft/class_1918;method_8303(Lnet/minecraft/class_3218;Lnet/minecraft/class_2165;)Lnet/minecraft/class_2168;official aLdtm;a(Laxl;Lei;)Lej;
-
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 aLdtm;a()Z
-