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/CommandBlockExecutor
intermediary net/minecraft/class_1918
official dgh
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private static final SimpleDateFormat
private static final Text
private long
private int
private boolean
private boolean
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
abstract Vec3d
getPos()
abstract ServerCommandSource
int
abstract ServerWorld
getWorld()
interact
(PlayerEntity player) abstract boolean
boolean
abstract void
void
readNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) void
sendMessage
(Text message) Sends a system message.void
setCommand
(String command) void
setCustomName
(@Nullable Text customName) void
setLastOutput
(@Nullable Text lastOutput) void
setSuccessCount
(int successCount) void
setTrackOutput
(boolean trackOutput) boolean
boolean
boolean
writeNbt
(NbtCompound nbt, RegistryWrapper.WrapperLookup registries) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilenced
-
Field Details
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector named DATE_FORMAT
Lnet/minecraft/world/CommandBlockExecutor;DATE_FORMAT:Ljava/text/SimpleDateFormat;
intermediary field_9169
Lnet/minecraft/class_1918;field_9169:Ljava/text/SimpleDateFormat;
official b
Ldgh;b:Ljava/text/SimpleDateFormat;
-
DEFAULT_NAME
- Mappings:
Namespace Name Mixin selector named DEFAULT_NAME
Lnet/minecraft/world/CommandBlockExecutor;DEFAULT_NAME:Lnet/minecraft/text/Text;
intermediary field_21515
Lnet/minecraft/class_1918;field_21515:Lnet/minecraft/class_2561;
official c
Ldgh;c:Lxv;
-
lastExecution
private long lastExecution- Mappings:
Namespace Name Mixin selector named lastExecution
Lnet/minecraft/world/CommandBlockExecutor;lastExecution:J
intermediary field_9167
Lnet/minecraft/class_1918;field_9167:J
official d
Ldgh;d:J
-
updateLastExecution
private boolean updateLastExecution- Mappings:
Namespace Name Mixin selector named updateLastExecution
Lnet/minecraft/world/CommandBlockExecutor;updateLastExecution:Z
intermediary field_9166
Lnet/minecraft/class_1918;field_9166:Z
official e
Ldgh;e:Z
-
successCount
private int successCount- Mappings:
Namespace Name Mixin selector named successCount
Lnet/minecraft/world/CommandBlockExecutor;successCount:I
intermediary field_9163
Lnet/minecraft/class_1918;field_9163:I
official f
Ldgh;f:I
-
trackOutput
private boolean trackOutput- Mappings:
Namespace Name Mixin selector named trackOutput
Lnet/minecraft/world/CommandBlockExecutor;trackOutput:Z
intermediary field_9164
Lnet/minecraft/class_1918;field_9164:Z
official g
Ldgh;g:Z
-
lastOutput
- Mappings:
Namespace Name Mixin selector named lastOutput
Lnet/minecraft/world/CommandBlockExecutor;lastOutput:Lnet/minecraft/text/Text;
intermediary field_9165
Lnet/minecraft/class_1918;field_9165:Lnet/minecraft/class_2561;
official h
Ldgh;h:Lxv;
-
command
- Mappings:
Namespace Name Mixin selector named command
Lnet/minecraft/world/CommandBlockExecutor;command:Ljava/lang/String;
intermediary field_9168
Lnet/minecraft/class_1918;field_9168:Ljava/lang/String;
official i
Ldgh;i:Ljava/lang/String;
-
customName
- Mappings:
Namespace Name Mixin selector named customName
Lnet/minecraft/world/CommandBlockExecutor;customName:Lnet/minecraft/text/Text;
intermediary field_9162
Lnet/minecraft/class_1918;field_9162:Lnet/minecraft/class_2561;
official j
Ldgh;j:Lxv;
-
-
Constructor Details
-
CommandBlockExecutor
public CommandBlockExecutor()
-
-
Method Details
-
getSuccessCount
public int getSuccessCount()- Mappings:
Namespace Name Mixin selector named getSuccessCount
Lnet/minecraft/world/CommandBlockExecutor;getSuccessCount()I
intermediary method_8304
Lnet/minecraft/class_1918;method_8304()I
official k
Ldgh;k()I
-
setSuccessCount
public void setSuccessCount(int successCount) - Mappings:
Namespace Name Mixin selector named setSuccessCount
Lnet/minecraft/world/CommandBlockExecutor;setSuccessCount(I)V
intermediary method_8298
Lnet/minecraft/class_1918;method_8298(I)V
official a
Ldgh;a(I)V
-
getLastOutput
- Mappings:
Namespace Name Mixin selector named getLastOutput
Lnet/minecraft/world/CommandBlockExecutor;getLastOutput()Lnet/minecraft/text/Text;
intermediary method_8292
Lnet/minecraft/class_1918;method_8292()Lnet/minecraft/class_2561;
official l
Ldgh;l()Lxv;
-
writeNbt
- Mappings:
Namespace Name Mixin selector named writeNbt
Lnet/minecraft/world/CommandBlockExecutor;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_8297
Lnet/minecraft/class_1918;method_8297(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
official a
Ldgh;a(Lux;Ljs$a;)Lux;
-
readNbt
- Mappings:
Namespace Name Mixin selector named readNbt
Lnet/minecraft/world/CommandBlockExecutor;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary method_8305
Lnet/minecraft/class_1918;method_8305(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
official b
Ldgh;b(Lux;Ljs$a;)V
-
setCommand
- Mappings:
Namespace Name Mixin selector named setCommand
Lnet/minecraft/world/CommandBlockExecutor;setCommand(Ljava/lang/String;)V
intermediary method_8286
Lnet/minecraft/class_1918;method_8286(Ljava/lang/String;)V
official a
Ldgh;a(Ljava/lang/String;)V
-
getCommand
- Mappings:
Namespace Name Mixin selector named getCommand
Lnet/minecraft/world/CommandBlockExecutor;getCommand()Ljava/lang/String;
intermediary method_8289
Lnet/minecraft/class_1918;method_8289()Ljava/lang/String;
official m
Ldgh;m()Ljava/lang/String;
-
execute
- Mappings:
Namespace Name Mixin selector named execute
Lnet/minecraft/world/CommandBlockExecutor;execute(Lnet/minecraft/world/World;)Z
intermediary method_8301
Lnet/minecraft/class_1918;method_8301(Lnet/minecraft/class_1937;)Z
official a
Ldgh;a(Ldhh;)Z
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/world/CommandBlockExecutor;getName()Lnet/minecraft/text/Text;
intermediary method_8299
Lnet/minecraft/class_1918;method_8299()Lnet/minecraft/class_2561;
official n
Ldgh;n()Lxv;
-
getCustomName
- Mappings:
Namespace Name Mixin selector named getCustomName
Lnet/minecraft/world/CommandBlockExecutor;getCustomName()Lnet/minecraft/text/Text;
intermediary method_57558
Lnet/minecraft/class_1918;method_57558()Lnet/minecraft/class_2561;
official o
Ldgh;o()Lxv;
-
setCustomName
- Mappings:
Namespace Name Mixin selector named setCustomName
Lnet/minecraft/world/CommandBlockExecutor;setCustomName(Lnet/minecraft/text/Text;)V
intermediary method_8290
Lnet/minecraft/class_1918;method_8290(Lnet/minecraft/class_2561;)V
official b
Ldgh;b(Lxv;)V
-
sendMessage
Sends a system message.- Specified by:
sendMessage
in 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 sendMessage
Lnet/minecraft/server/command/CommandOutput;sendMessage(Lnet/minecraft/text/Text;)V
intermediary method_43496
Lnet/minecraft/class_2165;method_43496(Lnet/minecraft/class_2561;)V
official a
Lev;a(Lxv;)V
-
getWorld
- Mappings:
Namespace Name Mixin selector named getWorld
Lnet/minecraft/world/CommandBlockExecutor;getWorld()Lnet/minecraft/server/world/ServerWorld;
intermediary method_8293
Lnet/minecraft/class_1918;method_8293()Lnet/minecraft/class_3218;
official e
Ldgh;e()Lash;
-
markDirty
public abstract void markDirty()- Mappings:
Namespace Name Mixin selector named markDirty
Lnet/minecraft/world/CommandBlockExecutor;markDirty()V
intermediary method_8295
Lnet/minecraft/class_1918;method_8295()V
official f
Ldgh;f()V
-
setLastOutput
- Mappings:
Namespace Name Mixin selector named setLastOutput
Lnet/minecraft/world/CommandBlockExecutor;setLastOutput(Lnet/minecraft/text/Text;)V
intermediary method_8291
Lnet/minecraft/class_1918;method_8291(Lnet/minecraft/class_2561;)V
official c
Ldgh;c(Lxv;)V
-
setTrackOutput
public void setTrackOutput(boolean trackOutput) - Mappings:
Namespace Name Mixin selector named setTrackOutput
Lnet/minecraft/world/CommandBlockExecutor;setTrackOutput(Z)V
intermediary method_8287
Lnet/minecraft/class_1918;method_8287(Z)V
official a
Ldgh;a(Z)V
-
isTrackingOutput
public boolean isTrackingOutput()- Mappings:
Namespace Name Mixin selector named isTrackingOutput
Lnet/minecraft/world/CommandBlockExecutor;isTrackingOutput()Z
intermediary method_8296
Lnet/minecraft/class_1918;method_8296()Z
official p
Ldgh;p()Z
-
interact
- Mappings:
Namespace Name Mixin selector named interact
Lnet/minecraft/world/CommandBlockExecutor;interact(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
intermediary method_8288
Lnet/minecraft/class_1918;method_8288(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;
official a
Ldgh;a(Lcpw;)Lbti;
-
getPos
- Mappings:
Namespace Name Mixin selector named getPos
Lnet/minecraft/world/CommandBlockExecutor;getPos()Lnet/minecraft/util/math/Vec3d;
intermediary method_8300
Lnet/minecraft/class_1918;method_8300()Lnet/minecraft/class_243;
official g
Ldgh;g()Lfbx;
-
getSource
- Mappings:
Namespace Name Mixin selector named getSource
Lnet/minecraft/world/CommandBlockExecutor;getSource()Lnet/minecraft/server/command/ServerCommandSource;
intermediary method_8303
Lnet/minecraft/class_1918;method_8303()Lnet/minecraft/class_2168;
official i
Ldgh;i()Lew;
-
shouldReceiveFeedback
public boolean shouldReceiveFeedback()- Specified by:
shouldReceiveFeedback
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector named shouldReceiveFeedback
Lnet/minecraft/server/command/CommandOutput;shouldReceiveFeedback()Z
intermediary method_9200
Lnet/minecraft/class_2165;method_9200()Z
official y_
Lev;y_()Z
-
shouldTrackOutput
public boolean shouldTrackOutput()- Specified by:
shouldTrackOutput
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector named shouldTrackOutput
Lnet/minecraft/server/command/CommandOutput;shouldTrackOutput()Z
intermediary method_9202
Lnet/minecraft/class_2165;method_9202()Z
official z_
Lev;z_()Z
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps()- Specified by:
shouldBroadcastConsoleToOps
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector named shouldBroadcastConsoleToOps
Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
intermediary method_9201
Lnet/minecraft/class_2165;method_9201()Z
official c
Lev;c()Z
-
isEditable
public abstract boolean isEditable()- Mappings:
Namespace Name Mixin selector named isEditable
Lnet/minecraft/world/CommandBlockExecutor;isEditable()Z
intermediary method_52175
Lnet/minecraft/class_1918;method_52175()Z
official j
Ldgh;j()Z
-