类 CommandBlockExecutor
- java.lang.Object
-
- net.minecraft.world.CommandBlockExecutor
-
- 所有已实现的接口:
CommandOutput
public abstract class CommandBlockExecutor extends Object implements CommandOutput
A common logic for command-block behaviors shared by command blocks and command block minecarts.- 另请参阅:
MobSpawnerLogic- Mappings:
Namespace Name official burintermediary net/minecraft/class_1918named net/minecraft/world/CommandBlockExecutor
-
-
字段概要
字段 修饰符和类型 字段 说明 private Stringcommandprivate TextcustomNameprivate static SimpleDateFormatDATE_FORMATprivate static TextDEFAULT_NAMEprivate longlastExecutionprivate @Nullable TextlastOutputprivate intsuccessCountprivate booleantrackOutputprivate booleanupdateLastExecution-
从接口继承的字段 net.minecraft.server.command.CommandOutput
DUMMY
-
-
构造器概要
构造器 构造器 说明 CommandBlockExecutor()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 booleanexecute(World world)StringgetCommand()TextgetCustomName()TextgetLastOutput()abstract Vec3dgetPos()abstract ServerCommandSourcegetSource()intgetSuccessCount()abstract ServerWorldgetWorld()ActionResultinteract(PlayerEntity player)booleanisTrackingOutput()abstract voidmarkDirty()voidreadNbt(CompoundTag nbt)voidsendSystemMessage(Text message, UUID senderUuid)voidsetCommand(String command)voidsetCustomName(@Nullable Text name)voidsetLastOutput(@Nullable Text lastOutput)voidsetSuccessCount(int successCount)voidsetTrackingOutput(boolean trackOutput)booleanshouldBroadcastConsoleToOps()booleanshouldReceiveFeedback()booleanshouldTrackOutput()CompoundTagwriteNbt(CompoundTag nbt)
-
-
-
字段详细资料
-
DATE_FORMAT
private static final SimpleDateFormat DATE_FORMAT
- Mappings:
Namespace Name Mixin selector official bLbur;b:Ljava/text/SimpleDateFormat;intermediary field_9169Lnet/minecraft/class_1918;field_9169:Ljava/text/SimpleDateFormat;named DATE_FORMATLnet/minecraft/world/CommandBlockExecutor;DATE_FORMAT:Ljava/text/SimpleDateFormat;
-
DEFAULT_NAME
private static final Text DEFAULT_NAME
- Mappings:
Namespace Name Mixin selector official cLbur;c:Lon;intermediary field_21515Lnet/minecraft/class_1918;field_21515:Lnet/minecraft/class_2561;named DEFAULT_NAMELnet/minecraft/world/CommandBlockExecutor;DEFAULT_NAME:Lnet/minecraft/text/Text;
-
lastExecution
private long lastExecution
- Mappings:
Namespace Name Mixin selector official dLbur;d:Jintermediary field_9167Lnet/minecraft/class_1918;field_9167:Jnamed lastExecutionLnet/minecraft/world/CommandBlockExecutor;lastExecution:J
-
updateLastExecution
private boolean updateLastExecution
- Mappings:
Namespace Name Mixin selector official eLbur;e:Zintermediary field_9166Lnet/minecraft/class_1918;field_9166:Znamed updateLastExecutionLnet/minecraft/world/CommandBlockExecutor;updateLastExecution:Z
-
successCount
private int successCount
- Mappings:
Namespace Name Mixin selector official fLbur;f:Iintermediary field_9163Lnet/minecraft/class_1918;field_9163:Inamed successCountLnet/minecraft/world/CommandBlockExecutor;successCount:I
-
trackOutput
private boolean trackOutput
- Mappings:
Namespace Name Mixin selector official gLbur;g:Zintermediary field_9164Lnet/minecraft/class_1918;field_9164:Znamed trackOutputLnet/minecraft/world/CommandBlockExecutor;trackOutput:Z
-
lastOutput
@Nullable private @Nullable Text lastOutput
- Mappings:
Namespace Name Mixin selector official hLbur;h:Lon;intermediary field_9165Lnet/minecraft/class_1918;field_9165:Lnet/minecraft/class_2561;named lastOutputLnet/minecraft/world/CommandBlockExecutor;lastOutput:Lnet/minecraft/text/Text;
-
command
private String command
- Mappings:
Namespace Name Mixin selector official iLbur;i:Ljava/lang/String;intermediary field_9168Lnet/minecraft/class_1918;field_9168:Ljava/lang/String;named commandLnet/minecraft/world/CommandBlockExecutor;command:Ljava/lang/String;
-
customName
private Text customName
- Mappings:
Namespace Name Mixin selector official jLbur;j:Lon;intermediary field_9162Lnet/minecraft/class_1918;field_9162:Lnet/minecraft/class_2561;named customNameLnet/minecraft/world/CommandBlockExecutor;customName:Lnet/minecraft/text/Text;
-
-
方法详细资料
-
getSuccessCount
public int getSuccessCount()
- Mappings:
Namespace Name Mixin selector official iLbur;i()Iintermediary method_8304Lnet/minecraft/class_1918;method_8304()Inamed getSuccessCountLnet/minecraft/world/CommandBlockExecutor;getSuccessCount()I
-
setSuccessCount
public void setSuccessCount(int successCount)
- Mappings:
Namespace Name Mixin selector official aLbur;a(I)Vintermediary method_8298Lnet/minecraft/class_1918;method_8298(I)Vnamed setSuccessCountLnet/minecraft/world/CommandBlockExecutor;setSuccessCount(I)V
-
getLastOutput
public Text getLastOutput()
- Mappings:
Namespace Name Mixin selector official jLbur;j()Lon;intermediary method_8292Lnet/minecraft/class_1918;method_8292()Lnet/minecraft/class_2561;named getLastOutputLnet/minecraft/world/CommandBlockExecutor;getLastOutput()Lnet/minecraft/text/Text;
-
writeNbt
public CompoundTag writeNbt(CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official aLbur;a(Lmv;)Lmv;intermediary method_8297Lnet/minecraft/class_1918;method_8297(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/world/CommandBlockExecutor;writeNbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
readNbt
public void readNbt(CompoundTag nbt)
- Mappings:
Namespace Name Mixin selector official bLbur;b(Lmv;)Vintermediary method_8305Lnet/minecraft/class_1918;method_8305(Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/world/CommandBlockExecutor;readNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
setCommand
public void setCommand(String command)
- Mappings:
Namespace Name Mixin selector official aLbur;a(Ljava/lang/String;)Vintermediary method_8286Lnet/minecraft/class_1918;method_8286(Ljava/lang/String;)Vnamed setCommandLnet/minecraft/world/CommandBlockExecutor;setCommand(Ljava/lang/String;)V
-
getCommand
public String getCommand()
- Mappings:
Namespace Name Mixin selector official kLbur;k()Ljava/lang/String;intermediary method_8289Lnet/minecraft/class_1918;method_8289()Ljava/lang/String;named getCommandLnet/minecraft/world/CommandBlockExecutor;getCommand()Ljava/lang/String;
-
execute
public boolean execute(World world)
- Mappings:
Namespace Name Mixin selector official aLbur;a(Lbvr;)Zintermediary method_8301Lnet/minecraft/class_1918;method_8301(Lnet/minecraft/class_1937;)Znamed executeLnet/minecraft/world/CommandBlockExecutor;execute(Lnet/minecraft/world/World;)Z
-
getCustomName
public Text getCustomName()
- Mappings:
Namespace Name Mixin selector official lLbur;l()Lon;intermediary method_8299Lnet/minecraft/class_1918;method_8299()Lnet/minecraft/class_2561;named getCustomNameLnet/minecraft/world/CommandBlockExecutor;getCustomName()Lnet/minecraft/text/Text;
-
setCustomName
public void setCustomName(@Nullable @Nullable Text name)
- Mappings:
Namespace Name Mixin selector official aLbur;a(Lon;)Vintermediary method_8290Lnet/minecraft/class_1918;method_8290(Lnet/minecraft/class_2561;)Vnamed setCustomNameLnet/minecraft/world/CommandBlockExecutor;setCustomName(Lnet/minecraft/text/Text;)V
-
sendSystemMessage
public void sendSystemMessage(Text message, UUID senderUuid)
- 指定者:
sendSystemMessage在接口中CommandOutput- Mappings:
Namespace Name Mixin selector official aLdf;a(Lon;Ljava/util/UUID;)Vintermediary method_9203Lnet/minecraft/class_2165;method_9203(Lnet/minecraft/class_2561;Ljava/util/UUID;)Vnamed sendSystemMessageLnet/minecraft/server/command/CommandOutput;sendSystemMessage(Lnet/minecraft/text/Text;Ljava/util/UUID;)V
-
getWorld
public abstract ServerWorld getWorld()
- Mappings:
Namespace Name Mixin selector official dLbur;d()Labj;intermediary method_8293Lnet/minecraft/class_1918;method_8293()Lnet/minecraft/class_3218;named getWorldLnet/minecraft/world/CommandBlockExecutor;getWorld()Lnet/minecraft/server/world/ServerWorld;
-
markDirty
public abstract void markDirty()
- Mappings:
Namespace Name Mixin selector official eLbur;e()Vintermediary method_8295Lnet/minecraft/class_1918;method_8295()Vnamed markDirtyLnet/minecraft/world/CommandBlockExecutor;markDirty()V
-
setLastOutput
public void setLastOutput(@Nullable @Nullable Text lastOutput)
- Mappings:
Namespace Name Mixin selector official bLbur;b(Lon;)Vintermediary method_8291Lnet/minecraft/class_1918;method_8291(Lnet/minecraft/class_2561;)Vnamed setLastOutputLnet/minecraft/world/CommandBlockExecutor;setLastOutput(Lnet/minecraft/text/Text;)V
-
setTrackingOutput
public void setTrackingOutput(boolean trackOutput)
- Mappings:
Namespace Name Mixin selector official aLbur;a(Z)Vintermediary method_8287Lnet/minecraft/class_1918;method_8287(Z)Vnamed setTrackingOutputLnet/minecraft/world/CommandBlockExecutor;setTrackingOutput(Z)V
-
isTrackingOutput
public boolean isTrackingOutput()
- Mappings:
Namespace Name Mixin selector official mLbur;m()Zintermediary method_8296Lnet/minecraft/class_1918;method_8296()Znamed isTrackingOutputLnet/minecraft/world/CommandBlockExecutor;isTrackingOutput()Z
-
interact
public ActionResult interact(PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official aLbur;a(Lbjf;)Larg;intermediary method_8288Lnet/minecraft/class_1918;method_8288(Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;named interactLnet/minecraft/world/CommandBlockExecutor;interact(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
-
getPos
public abstract Vec3d getPos()
- Mappings:
Namespace Name Mixin selector official fLbur;f()Ldma;intermediary method_8300Lnet/minecraft/class_1918;method_8300()Lnet/minecraft/class_243;named getPosLnet/minecraft/world/CommandBlockExecutor;getPos()Lnet/minecraft/util/math/Vec3d;
-
getSource
public abstract ServerCommandSource getSource()
- Mappings:
Namespace Name Mixin selector official hLbur;h()Ldg;intermediary method_8303Lnet/minecraft/class_1918;method_8303()Lnet/minecraft/class_2168;named getSourceLnet/minecraft/world/CommandBlockExecutor;getSource()Lnet/minecraft/server/command/ServerCommandSource;
-
shouldReceiveFeedback
public boolean shouldReceiveFeedback()
- 指定者:
shouldReceiveFeedback在接口中CommandOutput- Mappings:
Namespace Name Mixin selector official aLdf;a()Zintermediary method_9200Lnet/minecraft/class_2165;method_9200()Znamed shouldReceiveFeedbackLnet/minecraft/server/command/CommandOutput;shouldReceiveFeedback()Z
-
shouldTrackOutput
public boolean shouldTrackOutput()
- 指定者:
shouldTrackOutput在接口中CommandOutput- Mappings:
Namespace Name Mixin selector official bLdf;b()Zintermediary method_9202Lnet/minecraft/class_2165;method_9202()Znamed shouldTrackOutputLnet/minecraft/server/command/CommandOutput;shouldTrackOutput()Z
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps()
- 指定者:
shouldBroadcastConsoleToOps在接口中CommandOutput- Mappings:
Namespace Name Mixin selector official R_Ldf;R_()Zintermediary method_9201Lnet/minecraft/class_2165;method_9201()Znamed shouldBroadcastConsoleToOpsLnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
-
-