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
A common logic for command-block behaviors shared by command blocks and command block minecarts.
See Also:
Mappings:
Namespace Name
official byx
intermediary net/minecraft/class_1918
named net/minecraft/world/CommandBlockExecutor
  • Field Details

    • DATE_FORMAT

      private static final SimpleDateFormat DATE_FORMAT
      Mappings:
      Namespace Name Mixin selector
      official b Lbyx;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

      private static final Text DEFAULT_NAME
      Mappings:
      Namespace Name Mixin selector
      official c Lbyx;c:Lpt;
      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 Lbyx;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 Lbyx;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 Lbyx;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 Lbyx;g:Z
      intermediary field_9164 Lnet/minecraft/class_1918;field_9164:Z
      named trackOutput Lnet/minecraft/world/CommandBlockExecutor;trackOutput:Z
    • lastOutput

      @Nullable private @Nullable Text lastOutput
      Mappings:
      Namespace Name Mixin selector
      official h Lbyx;h:Lpt;
      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

      private String command
      Mappings:
      Namespace Name Mixin selector
      official i Lbyx;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

      private Text customName
      Mappings:
      Namespace Name Mixin selector
      official j Lbyx;j:Lpt;
      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 Lbyx;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 Lbyx;a(I)V
      intermediary method_8298 Lnet/minecraft/class_1918;method_8298(I)V
      named setSuccessCount Lnet/minecraft/world/CommandBlockExecutor;setSuccessCount(I)V
    • getLastOutput

      public Text getLastOutput()
      Mappings:
      Namespace Name Mixin selector
      official k Lbyx;k()Lpt;
      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

      public NbtCompound writeNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyx;a(Lob;)Lob;
      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

      public void readNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official b Lbyx;b(Lob;)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

      public void setCommand(String command)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyx;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

      public String getCommand()
      Mappings:
      Namespace Name Mixin selector
      official l Lbyx;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

      public boolean execute(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyx;a(Lbzw;)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

      public Text getCustomName()
      Mappings:
      Namespace Name Mixin selector
      official m Lbyx;m()Lpt;
      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

      public void setCustomName(@Nullable @Nullable Text name)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyx;a(Lpt;)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

      public void sendSystemMessage(Text message, UUID sender)
      Specified by:
      sendSystemMessage in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      official a Ldl;a(Lpt;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

      public abstract ServerWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      official e Lbyx;e()Ladc;
      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 Lbyx;f()V
      intermediary method_8295 Lnet/minecraft/class_1918;method_8295()V
      named markDirty Lnet/minecraft/world/CommandBlockExecutor;markDirty()V
    • setLastOutput

      public void setLastOutput(@Nullable @Nullable Text lastOutput)
      Mappings:
      Namespace Name Mixin selector
      official b Lbyx;b(Lpt;)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 Lbyx;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 Lbyx;n()Z
      intermediary method_8296 Lnet/minecraft/class_1918;method_8296()Z
      named isTrackingOutput Lnet/minecraft/world/CommandBlockExecutor;isTrackingOutput()Z
    • interact

      public ActionResult interact(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lbyx;a(Lbnk;)Lavj;
      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

      public abstract Vec3d getPos()
      Mappings:
      Namespace Name Mixin selector
      official g Lbyx;g()Ldnz;
      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

      public abstract ServerCommandSource getSource()
      Mappings:
      Namespace Name Mixin selector
      official i Lbyx;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 interface CommandOutput
      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 interface CommandOutput
      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 interface CommandOutput
      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