Class LevelMixin

java.lang.Object
dev.latvian.mods.kubejs.core.mixin.LevelMixin
All Implemented Interfaces:
EntityCollectionKJS, EntityGetterKJS, LevelKJS, MessageSenderKJS, WithAttachedData<net.minecraft.world.level.Level>, ScriptTypeHolder

@RemapPrefixForJS("kjs$") public abstract class LevelMixin extends Object implements LevelKJS
  • Constructor Details

    • LevelMixin

      public LevelMixin()
  • Method Details

    • kjs$getData

      public AttachedData<net.minecraft.world.level.Level> kjs$getData()
      Specified by:
      kjs$getData in interface WithAttachedData<net.minecraft.world.level.Level>
    • getGameTime

      @RemapForJS("getTime") public abstract long getGameTime()
    • dimension

      @RemapForJS("getDimensionKey") public abstract net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension()
    • getEntities

      @HideFromJS protected abstract net.minecraft.world.level.entity.LevelEntityGetter<net.minecraft.world.entity.Entity> getEntities()
    • kjs$getMcEntities

      public Iterable<? extends net.minecraft.world.entity.Entity> kjs$getMcEntities()
      Specified by:
      kjs$getMcEntities in interface EntityCollectionKJS
      Specified by:
      kjs$getMcEntities in interface EntityGetterKJS
    • kjs$getEntityByUUID

      @Nullable public @Nullable net.minecraft.world.entity.Entity kjs$getEntityByUUID(UUID id)
      Specified by:
      kjs$getEntityByUUID in interface EntityCollectionKJS
    • kjs$getEntityByNetworkID

      @Nullable public @Nullable net.minecraft.world.entity.Entity kjs$getEntityByNetworkID(int id)
      Specified by:
      kjs$getEntityByNetworkID in interface EntityCollectionKJS