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 cfb
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
sendMessage
(Text message) Sends a system message.void
setCommand
(String command) void
setCustomName
(@Nullable Text name) void
setLastOutput
(@Nullable Text lastOutput) void
setSuccessCount
(int successCount) void
setTrackOutput
(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
Lcfb;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
Lcfb;c:Lrm;
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
Lcfb;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
Lcfb;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
Lcfb;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
Lcfb;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
Lcfb;h:Lrm;
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
Lcfb;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
Lcfb;j:Lrm;
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
Lcfb;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
Lcfb;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
Lcfb;k()Lrm;
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
Lcfb;a(Lpj;)Lpj;
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
Lcfb;b(Lpj;)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
Lcfb;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
Lcfb;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
Lcfb;a(Lcga;)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
Lcfb;m()Lrm;
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 b
Lcfb;b(Lrm;)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
-
sendMessage
Sends a system message.- Specified by:
sendMessage
in interfaceCommandOutput
- Mappings:
Namespace Name Mixin selector official a
Ldq;a(Lrm;)V
intermediary method_43496
Lnet/minecraft/class_2165;method_43496(Lnet/minecraft/class_2561;)V
named sendMessage
Lnet/minecraft/server/command/CommandOutput;sendMessage(Lnet/minecraft/text/Text;)V
-
getWorld
- Mappings:
Namespace Name Mixin selector official e
Lcfb;e()Lafo;
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
Lcfb;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 c
Lcfb;c(Lrm;)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
-
setTrackOutput
public void setTrackOutput(boolean trackOutput) - Mappings:
Namespace Name Mixin selector official a
Lcfb;a(Z)V
intermediary method_8287
Lnet/minecraft/class_1918;method_8287(Z)V
named setTrackOutput
Lnet/minecraft/world/CommandBlockExecutor;setTrackOutput(Z)V
-
isTrackingOutput
public boolean isTrackingOutput()- Mappings:
Namespace Name Mixin selector official n
Lcfb;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
Lcfb;a(Lbtf;)Lazm;
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
Lcfb;g()Ldvt;
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
Lcfb;i()Ldr;
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_
Ldq;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_
Ldq;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 G_
Ldq;G_()Z
intermediary method_9201
Lnet/minecraft/class_2165;method_9201()Z
named shouldBroadcastConsoleToOps
Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
-