Interface LevelKJS

All Superinterfaces:
EntityCollectionKJS, EntityGetterKJS, MessageSenderKJS, ScriptTypeHolder, WithAttachedData<net.minecraft.world.level.Level>
All Known Subinterfaces:
ClientLevelKJS, ServerLevelKJS
All Known Implementing Classes:
ClientLevelMixin, LevelMixin, ServerLevelMixin

@RemapPrefixForJS("kjs$") public interface LevelKJS extends WithAttachedData<net.minecraft.world.level.Level>, ScriptTypeHolder, EntityGetterKJS
  • Method Details

    • kjs$self

      default net.minecraft.world.level.Level kjs$self()
      Specified by:
      kjs$self in interface EntityGetterKJS
    • kjs$getScriptType

      @RemapForJS("getSide") default ScriptType kjs$getScriptType()
      Specified by:
      kjs$getScriptType in interface ScriptTypeHolder
    • kjs$getName

      default net.minecraft.network.chat.Component kjs$getName()
      Specified by:
      kjs$getName in interface MessageSenderKJS
    • kjs$tell

      default void kjs$tell(net.minecraft.network.chat.Component message)
      Specified by:
      kjs$tell in interface MessageSenderKJS
    • kjs$setStatusMessage

      default void kjs$setStatusMessage(net.minecraft.network.chat.Component message)
      Specified by:
      kjs$setStatusMessage in interface MessageSenderKJS
    • kjs$runCommand

      @Info(value="Each player in the level (world) runs the specified console command with their permission level.", params=@Param(name="command",value="The console command. Slash at the beginning is optional.")) default void kjs$runCommand(String command)
      Specified by:
      kjs$runCommand in interface MessageSenderKJS
    • kjs$runCommandSilent

      @Info(value="Each player in the level (world) runs the specified console command with their permission level. The command won\'t output any logs in chat nor console", params=@Param(name="command",value="The console command. Slash at the beginning is optional.")) default void kjs$runCommandSilent(String command)
      Specified by:
      kjs$runCommandSilent in interface MessageSenderKJS
    • kjs$setActivePostShader

      default void kjs$setActivePostShader(@Nullable @Nullable net.minecraft.resources.ResourceLocation id)
      Specified by:
      kjs$setActivePostShader in interface MessageSenderKJS
    • kjs$getDimension

      default net.minecraft.resources.ResourceLocation kjs$getDimension()
    • kjs$isOverworld

      default boolean kjs$isOverworld()
    • kjs$setTime

      default void kjs$setTime(long time)
    • kjs$getBlock

      default LevelBlock kjs$getBlock(int x, int y, int z)
    • kjs$getBlock

      default LevelBlock kjs$getBlock(net.minecraft.core.BlockPos pos)
    • kjs$getBlock

      default LevelBlock kjs$getBlock(net.minecraft.world.level.block.entity.BlockEntity entity)
    • kjs$explode

      default net.minecraft.world.level.Explosion kjs$explode(double x, double y, double z, ExplosionProperties properties)
    • kjs$createEntity

      @Nullable default @Nullable net.minecraft.world.entity.Entity kjs$createEntity(net.minecraft.world.entity.EntityType<?> type)
    • spawnEntity

      default void spawnEntity(net.minecraft.world.entity.EntityType<?> type, Consumer<net.minecraft.world.entity.Entity> callback)
    • kjs$spawnFireworks

      default void kjs$spawnFireworks(double x, double y, double z, net.minecraft.world.item.component.Fireworks fireworks, int lifetime)
    • kjs$spawnParticles

      default void kjs$spawnParticles(net.minecraft.core.particles.ParticleOptions options, boolean overrideLimiter, double x, double y, double z, double vx, double vy, double vz, int count, double speed)
    • kjs$spawnLightning

      default void kjs$spawnLightning(double x, double y, double z, boolean visualOnly, @Nullable @Nullable net.minecraft.server.level.ServerPlayer cause)
    • kjs$spawnLightning

      default void kjs$spawnLightning(double x, double y, double z, boolean visualOnly)