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.
Mappings:
Namespace Name
official csq
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 Lcsq;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 Lcsq;c:Lvf;
      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 Lcsq;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 Lcsq;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 Lcsq;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 Lcsq;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 Lcsq;h:Lvf;
      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 Lcsq;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 Lcsq;j:Lvf;
      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 k Lcsq;k()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 Lcsq;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 l Lcsq;l()Lvf;
      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 Lcsq;a(Lsn;)Lsn;
      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 Lcsq;b(Lsn;)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 Lcsq;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 m Lcsq;m()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 Lcsq;a(Lctp;)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 n Lcsq;n()Lvf;
      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 b Lcsq;b(Lvf;)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

      public void sendMessage(Text message)
      Sends a system message.
      Specified by:
      sendMessage in interface CommandOutput
      Mappings:
      Namespace Name Mixin selector
      official a Ldr;a(Lvf;)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

      public abstract ServerWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      official e Lcsq;e()Land;
      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 Lcsq;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 c Lcsq;c(Lvf;)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 Lcsq;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 o Lcsq;o()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 Lcsq;a(Lcfi;)Lbkb;
      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 Lcsq;g()Lelt;
      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 Lcsq;i()Lds;
      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 l_ Ldr;l_()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 x_ Ldr;x_()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 W_ Ldr;W_()Z
      intermediary method_9201 Lnet/minecraft/class_2165;method_9201()Z
      named shouldBroadcastConsoleToOps Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
    • isEditable

      public abstract boolean isEditable()
      Mappings:
      Namespace Name Mixin selector
      official j Lcsq;j()Z
      intermediary method_52175 Lnet/minecraft/class_1918;method_52175()Z
      named isEditable Lnet/minecraft/world/CommandBlockExecutor;isEditable()Z