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.
- See Also:
- Mappings:
Namespace Name official bze
intermediary net/minecraft/class_1918
named net/minecraft/world/CommandBlockExecutor
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private Text
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
abstract Vec3d
getPos()
abstract ServerCommandSource
int
abstract ServerWorld
getWorld()
interact
(PlayerEntity player) boolean
abstract void
void
readNbt
(NbtCompound nbt) void
sendSystemMessage
(Text message, UUID sender) void
setCommand
(String command) void
setCustomName
(@Nullable Text name) void
setLastOutput
(@Nullable Text lastOutput) void
setSuccessCount
(int successCount) void
setTrackingOutput
(boolean trackOutput) boolean
boolean
boolean
writeNbt
(NbtCompound nbt) 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 official b
Lbze;b:Ljava/text/SimpleDateFormat;
intermediary field_9169
Lnet/minecraft/class_1918;field_9169:Ljava/text/SimpleDateFormat;
named DATE_FORMAT
Lnet/minecraft/world/CommandBlockExecutor;DATE_FORMAT:Ljava/text/SimpleDateFormat;
-
DEFAULT_NAME
- Mappings:
Namespace Name Mixin selector official c
Lbze;c:Lpz;
intermediary field_21515
Lnet/minecraft/class_1918;field_21515:Lnet/minecraft/class_2561;
named DEFAULT_NAME
Lnet/minecraft/world/CommandBlockExecutor;DEFAULT_NAME:Lnet/minecraft/text/Text;
-
lastExecution
private long lastExecution- Mappings:
Namespace Name Mixin selector official d
Lbze;d:J
intermediary field_9167
Lnet/minecraft/class_1918;field_9167:J
named lastExecution
Lnet/minecraft/world/CommandBlockExecutor;lastExecution:J
-
updateLastExecution
private boolean updateLastExecution- Mappings:
Namespace Name Mixin selector official e
Lbze;e:Z
intermediary field_9166
Lnet/minecraft/class_1918;field_9166:Z
named updateLastExecution
Lnet/minecraft/world/CommandBlockExecutor;updateLastExecution:Z
-
successCount
private int successCount- Mappings:
Namespace Name Mixin selector official f
Lbze;f:I
intermediary field_9163
Lnet/minecraft/class_1918;field_9163:I
named successCount
Lnet/minecraft/world/CommandBlockExecutor;successCount:I
-
trackOutput
private boolean trackOutput- Mappings:
Namespace Name Mixin selector official g
Lbze;g:Z
intermediary field_9164
Lnet/minecraft/class_1918;field_9164:Z
named trackOutput
Lnet/minecraft/world/CommandBlockExecutor;trackOutput:Z
-
lastOutput
- Mappings:
Namespace Name Mixin selector official h
Lbze;h:Lpz;
intermediary field_9165
Lnet/minecraft/class_1918;field_9165:Lnet/minecraft/class_2561;
named lastOutput
Lnet/minecraft/world/CommandBlockExecutor;lastOutput:Lnet/minecraft/text/Text;
-
command
- Mappings:
Namespace Name Mixin selector official i
Lbze;i:Ljava/lang/String;
intermediary field_9168
Lnet/minecraft/class_1918;field_9168:Ljava/lang/String;
named command
Lnet/minecraft/world/CommandBlockExecutor;command:Ljava/lang/String;
-
customName
- Mappings:
Namespace Name Mixin selector official j
Lbze;j:Lpz;
intermediary field_9162
Lnet/minecraft/class_1918;field_9162:Lnet/minecraft/class_2561;
named customName
Lnet/minecraft/world/CommandBlockExecutor;customName:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
CommandBlockExecutor
public CommandBlockExecutor()
-
-
Method Details
-
getSuccessCount
public int getSuccessCount()- Mappings:
Namespace Name Mixin selector official j
Lbze;j()I
intermediary method_8304
Lnet/minecraft/class_1918;method_8304()I
named getSuccessCount
Lnet/minecraft/world/CommandBlockExecutor;getSuccessCount()I
-
setSuccessCount
public void setSuccessCount(int successCount) - Mappings:
Namespace Name Mixin selector official a
Lbze;a(I)V
intermediary method_8298
Lnet/minecraft/class_1918;method_8298(I)V
named setSuccessCount
Lnet/minecraft/world/CommandBlockExecutor;setSuccessCount(I)V
-
getLastOutput
- Mappings:
Namespace Name Mixin selector official k
Lbze;k()Lpz;
intermediary method_8292
Lnet/minecraft/class_1918;method_8292()Lnet/minecraft/class_2561;
named getLastOutput
Lnet/minecraft/world/CommandBlockExecutor;getLastOutput()Lnet/minecraft/text/Text;
-
writeNbt
- Mappings:
Namespace Name Mixin selector official a
Lbze;a(Loc;)Loc;
intermediary method_8297
Lnet/minecraft/class_1918;method_8297(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named writeNbt
Lnet/minecraft/world/CommandBlockExecutor;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
readNbt
- Mappings:
Namespace Name Mixin selector official b
Lbze;b(Loc;)V
intermediary method_8305
Lnet/minecraft/class_1918;method_8305(Lnet/minecraft/class_2487;)V
named readNbt
Lnet/minecraft/world/CommandBlockExecutor;readNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
setCommand
- Mappings:
Namespace Name Mixin selector official a
Lbze;a(Ljava/lang/String;)V
intermediary method_8286
Lnet/minecraft/class_1918;method_8286(Ljava/lang/String;)V
named setCommand
Lnet/minecraft/world/CommandBlockExecutor;setCommand(Ljava/lang/String;)V
-
getCommand
- Mappings:
Namespace Name Mixin selector official l
Lbze;l()Ljava/lang/String;
intermediary method_8289
Lnet/minecraft/class_1918;method_8289()Ljava/lang/String;
named getCommand
Lnet/minecraft/world/CommandBlockExecutor;getCommand()Ljava/lang/String;
-
execute
- Mappings:
Namespace Name Mixin selector official a
Lbze;a(Lcad;)Z
intermediary method_8301
Lnet/minecraft/class_1918;method_8301(Lnet/minecraft/class_1937;)Z
named execute
Lnet/minecraft/world/CommandBlockExecutor;execute(Lnet/minecraft/world/World;)Z
-
getCustomName
- Mappings:
Namespace Name Mixin selector official m
Lbze;m()Lpz;
intermediary method_8299
Lnet/minecraft/class_1918;method_8299()Lnet/minecraft/class_2561;
named getCustomName
Lnet/minecraft/world/CommandBlockExecutor;getCustomName()Lnet/minecraft/text/Text;
-
setCustomName
- Mappings:
Namespace Name Mixin selector official a
Lbze;a(Lpz;)V
intermediary method_8290
Lnet/minecraft/class_1918;method_8290(Lnet/minecraft/class_2561;)V
named setCustomName
Lnet/minecraft/world/CommandBlockExecutor;setCustomName(Lnet/minecraft/text/Text;)V
-
sendSystemMessage
- Specified by:
sendSystemMessage
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector official a
Ldl;a(Lpz;Ljava/util/UUID;)V
intermediary method_9203
Lnet/minecraft/class_2165;method_9203(Lnet/minecraft/class_2561;Ljava/util/UUID;)V
named sendSystemMessage
Lnet/minecraft/server/command/CommandOutput;sendSystemMessage(Lnet/minecraft/text/Text;Ljava/util/UUID;)V
-
getWorld
- Mappings:
Namespace Name Mixin selector official e
Lbze;e()Ladi;
intermediary method_8293
Lnet/minecraft/class_1918;method_8293()Lnet/minecraft/class_3218;
named getWorld
Lnet/minecraft/world/CommandBlockExecutor;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
markDirty
public abstract void markDirty()- Mappings:
Namespace Name Mixin selector official f
Lbze;f()V
intermediary method_8295
Lnet/minecraft/class_1918;method_8295()V
named markDirty
Lnet/minecraft/world/CommandBlockExecutor;markDirty()V
-
setLastOutput
- Mappings:
Namespace Name Mixin selector official b
Lbze;b(Lpz;)V
intermediary method_8291
Lnet/minecraft/class_1918;method_8291(Lnet/minecraft/class_2561;)V
named setLastOutput
Lnet/minecraft/world/CommandBlockExecutor;setLastOutput(Lnet/minecraft/text/Text;)V
-
setTrackingOutput
public void setTrackingOutput(boolean trackOutput) - Mappings:
Namespace Name Mixin selector official a
Lbze;a(Z)V
intermediary method_8287
Lnet/minecraft/class_1918;method_8287(Z)V
named setTrackingOutput
Lnet/minecraft/world/CommandBlockExecutor;setTrackingOutput(Z)V
-
isTrackingOutput
public boolean isTrackingOutput()- Mappings:
Namespace Name Mixin selector official n
Lbze;n()Z
intermediary method_8296
Lnet/minecraft/class_1918;method_8296()Z
named isTrackingOutput
Lnet/minecraft/world/CommandBlockExecutor;isTrackingOutput()Z
-
interact
- Mappings:
Namespace Name Mixin selector official a
Lbze;a(Lbnr;)Lavq;
intermediary method_8288
Lnet/minecraft/class_1918;method_8288(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;
named interact
Lnet/minecraft/world/CommandBlockExecutor;interact(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
-
getPos
- Mappings:
Namespace Name Mixin selector official g
Lbze;g()Ldom;
intermediary method_8300
Lnet/minecraft/class_1918;method_8300()Lnet/minecraft/class_243;
named getPos
Lnet/minecraft/world/CommandBlockExecutor;getPos()Lnet/minecraft/util/math/Vec3d;
-
getSource
- Mappings:
Namespace Name Mixin selector official i
Lbze;i()Ldm;
intermediary method_8303
Lnet/minecraft/class_1918;method_8303()Lnet/minecraft/class_2168;
named getSource
Lnet/minecraft/world/CommandBlockExecutor;getSource()Lnet/minecraft/server/command/ServerCommandSource;
-
shouldReceiveFeedback
public boolean shouldReceiveFeedback()- Specified by:
shouldReceiveFeedback
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector official i_
Ldl;i_()Z
intermediary method_9200
Lnet/minecraft/class_2165;method_9200()Z
named shouldReceiveFeedback
Lnet/minecraft/server/command/CommandOutput;shouldReceiveFeedback()Z
-
shouldTrackOutput
public boolean shouldTrackOutput()- Specified by:
shouldTrackOutput
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector official j_
Ldl;j_()Z
intermediary method_9202
Lnet/minecraft/class_2165;method_9202()Z
named shouldTrackOutput
Lnet/minecraft/server/command/CommandOutput;shouldTrackOutput()Z
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps()- Specified by:
shouldBroadcastConsoleToOps
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector official F_
Ldl;F_()Z
intermediary method_9201
Lnet/minecraft/class_2165;method_9201()Z
named shouldBroadcastConsoleToOps
Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
-