Class EntityMixin

java.lang.Object
dev.latvian.mods.kubejs.core.mixin.EntityMixin
All Implemented Interfaces:
EntityKJS, MessageSenderKJS, WithPersistentData, ScriptTypeHolder

@RemapPrefixForJS("kjs$") public abstract class EntityMixin extends Object implements EntityKJS
  • Field Details

    • tickCount

      @RemapForJS("tickCount") public int tickCount
  • Constructor Details

    • EntityMixin

      public EntityMixin()
  • Method Details

    • playerTouch

      public abstract void playerTouch(net.minecraft.world.entity.player.Player arg)
    • kjs$getPersistentData

      public net.minecraft.nbt.CompoundTag kjs$getPersistentData()
      Specified by:
      kjs$getPersistentData in interface WithPersistentData
    • getPersistentData

      @RemapForJS("getForgePersistentData") public abstract net.minecraft.nbt.CompoundTag getPersistentData()
    • kjs$getRawPersistentData

      @Nullable @HideFromJS public @Nullable net.minecraft.nbt.CompoundTag kjs$getRawPersistentData()
      Specified by:
      kjs$getRawPersistentData in interface EntityKJS
    • kjs$setRawPersistentData

      @HideFromJS public void kjs$setRawPersistentData(@Nullable @Nullable net.minecraft.nbt.CompoundTag tag)
      Specified by:
      kjs$setRawPersistentData in interface EntityKJS
    • getUUID

      @RemapForJS("getUuid") public abstract UUID getUUID()
    • getStringUUID

      @RemapForJS("getStringUuid") public abstract String getStringUUID()
    • getScoreboardName

      @RemapForJS("getUsername") public abstract String getScoreboardName()
    • isCurrentlyGlowing

      @RemapForJS("isGlowing") public abstract boolean isCurrentlyGlowing()
    • setGlowingTag

      @RemapForJS("setGlowing") public abstract void setGlowingTag(boolean glowing)
    • getYRot

      @RemapForJS("getYaw") public abstract float getYRot()
    • setYRot

      @RemapForJS("setYaw") public abstract void setYRot(float yaw)
    • getXRot

      @RemapForJS("getPitch") public abstract float getXRot()
    • setXRot

      @RemapForJS("setPitch") public abstract void setXRot(float pitch)
    • setDeltaMovement

      @RemapForJS("setMotion") public abstract void setDeltaMovement(double x, double y, double z)
    • moveTo

      @RemapForJS("setPositionAndRotation") public abstract void moveTo(double x, double y, double z, float yaw, float pitch)
    • push

      @RemapForJS("addMotion") public abstract void push(double x, double y, double z)
    • getPassengers

      @HideFromJS public abstract List<net.minecraft.world.entity.Entity> getPassengers()
    • isAlliedTo

      @RemapForJS("isOnSameTeam") public abstract boolean isAlliedTo(net.minecraft.world.entity.Entity e)
    • getDirection

      @RemapForJS("getHorizontalFacing") public abstract net.minecraft.core.Direction getDirection()
    • clearFire

      @RemapForJS("extinguish") public abstract void clearFire()
    • hurt

      @RemapForJS("attack") public abstract boolean hurt(net.minecraft.world.damagesource.DamageSource source, float hp)
    • distanceToSqr

      @RemapForJS("getDistanceSq") public abstract double distanceToSqr(double x, double y, double z)
    • getType

      @RemapForJS("getEntityType") public abstract net.minecraft.world.entity.EntityType<?> getType()
    • distanceToSqr

      @RemapForJS("distanceToEntitySqr") public abstract double distanceToSqr(net.minecraft.world.entity.Entity arg)
    • distanceTo

      @RemapForJS("distanceToEntity") public abstract float distanceTo(net.minecraft.world.entity.Entity arg)
    • level

      @HideFromJS public abstract net.minecraft.world.level.Level level()