Class BasicCommandKubeEvent

java.lang.Object
dev.latvian.mods.kubejs.server.BasicCommandKubeEvent
All Implemented Interfaces:
KubeEntityEvent, KubeEvent, KubeLevelEvent

public class BasicCommandKubeEvent extends Object implements KubeEntityEvent
  • Field Details

    • id

      public final String id
    • input

      public final String input
  • Constructor Details

    • BasicCommandKubeEvent

      public BasicCommandKubeEvent(net.minecraft.commands.CommandSourceStack source, String id, String input)
  • Method Details

    • getId

      public String getId()
    • getLevel

      public net.minecraft.world.level.Level getLevel()
      Specified by:
      getLevel in interface KubeEntityEvent
      Specified by:
      getLevel in interface KubeLevelEvent
    • getEntity

      @Nullable public @Nullable net.minecraft.world.entity.Entity getEntity()
      Specified by:
      getEntity in interface KubeEntityEvent
    • getPlayer

      @Nullable public @Nullable net.minecraft.server.level.ServerPlayer getPlayer()
      Specified by:
      getPlayer in interface KubeEntityEvent
    • getBlock

      public LevelBlock getBlock()
    • respondLazily

      public void respondLazily(Supplier<net.minecraft.network.chat.Component> text, boolean informAdmins)
    • respond

      public void respond(net.minecraft.network.chat.Component text)