Package net.minecraft.world
Class CommandBlockExecutor
java.lang.Object
net.minecraft.world.CommandBlockExecutor
- All Implemented Interfaces:
CommandOutput
- Direct Known Subclasses:
CommandBlockMinecartEntity.CommandExecutor
public abstract class CommandBlockExecutor extends Object implements CommandOutput
- Mappings:
Namespace Name official bsv
intermediary net/minecraft/class_1918
named net/minecraft/world/CommandBlockExecutor
-
Field Summary
Fields Modifier and Type Field Description private String
command
private Text
customName
private static SimpleDateFormat
DATE_FORMAT
private static Text
DEFAULT_NAME
private long
lastExecution
private Text
lastOutput
private int
successCount
private boolean
trackOutput
private boolean
updateLastExecution
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Constructor Description CommandBlockExecutor()
-
Method Summary
Modifier and Type Method Description void
deserialize(CompoundTag tag)
boolean
execute(World world)
String
getCommand()
Text
getCustomName()
Text
getLastOutput()
abstract Vec3d
getPos()
abstract ServerCommandSource
getSource()
int
getSuccessCount()
abstract ServerWorld
getWorld()
ActionResult
interact(PlayerEntity player)
boolean
isTrackingOutput()
abstract void
markDirty()
void
sendSystemMessage(Text message, UUID senderUuid)
CompoundTag
serialize(CompoundTag tag)
void
setCommand(String command)
void
setCustomName(Text name)
void
setLastOutput(Text lastOutput)
void
setSuccessCount(int successCount)
boolean
shouldBroadcastConsoleToOps()
boolean
shouldReceiveFeedback()
boolean
shouldTrackOutput()
void
shouldTrackOutput(boolean trackOutput)
-
Field Details
-
DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official b
Lbsv;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
Lbsv;c:Loi;
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
Lbsv;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
Lbsv;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
Lbsv;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
Lbsv;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
Lbsv;h:Loi;
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
Lbsv;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
Lbsv;j:Loi;
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 i
Lbsv;i()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
Lbsv;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 j
Lbsv;j()Loi;
intermediary method_8292
Lnet/minecraft/class_1918;method_8292()Lnet/minecraft/class_2561;
named getLastOutput
Lnet/minecraft/world/CommandBlockExecutor;getLastOutput()Lnet/minecraft/text/Text;
-
serialize
- Mappings:
Namespace Name Mixin selector official a
Lbsv;a(Lmq;)Lmq;
intermediary method_8297
Lnet/minecraft/class_1918;method_8297(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named serialize
Lnet/minecraft/world/CommandBlockExecutor;serialize(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
deserialize
- Mappings:
Namespace Name Mixin selector official b
Lbsv;b(Lmq;)V
intermediary method_8305
Lnet/minecraft/class_1918;method_8305(Lnet/minecraft/class_2487;)V
named deserialize
Lnet/minecraft/world/CommandBlockExecutor;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
setCommand
- Mappings:
Namespace Name Mixin selector official a
Lbsv;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 k
Lbsv;k()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
Lbsv;a(Lbtv;)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 l
Lbsv;l()Loi;
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
Lbsv;a(Loi;)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
Lda;a(Loi;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 d
Lbsv;d()Laav;
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 e
Lbsv;e()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
Lbsv;b(Loi;)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
-
shouldTrackOutput
public void shouldTrackOutput(boolean trackOutput)- Mappings:
Namespace Name Mixin selector official a
Lbsv;a(Z)V
intermediary method_8287
Lnet/minecraft/class_1918;method_8287(Z)V
named shouldTrackOutput
Lnet/minecraft/world/CommandBlockExecutor;shouldTrackOutput(Z)V
-
isTrackingOutput
- Mappings:
Namespace Name Mixin selector official m
Lbsv;m()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
Lbsv;a(Lbhl;)Lapq;
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 f
Lbsv;f()Ldiu;
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 h
Lbsv;h()Ldb;
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 a
Lda;a()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 b
Lda;b()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 Q_
Lda;Q_()Z
intermediary method_9201
Lnet/minecraft/class_2165;method_9201()Z
named shouldBroadcastConsoleToOps
Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
-