Class EntityMixin
java.lang.Object
dev.latvian.mods.kubejs.core.mixin.EntityMixin
- All Implemented Interfaces:
EntityKJS,MessageSenderKJS,WithPersistentData,ScriptTypeHolder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabstract floatdistanceTo(net.minecraft.world.entity.Entity arg) abstract doubledistanceToSqr(double x, double y, double z) abstract doubledistanceToSqr(net.minecraft.world.entity.Entity arg) abstract net.minecraft.core.Directionabstract List<net.minecraft.world.entity.Entity> abstract net.minecraft.nbt.CompoundTagabstract Stringabstract Stringabstract net.minecraft.world.entity.EntityType<?> getType()abstract UUIDgetUUID()abstract floatgetXRot()abstract floatgetYRot()abstract booleanhurt(net.minecraft.world.damagesource.DamageSource source, float hp) abstract booleanisAlliedTo(net.minecraft.world.entity.Entity e) abstract booleannet.minecraft.nbt.CompoundTag@Nullable net.minecraft.nbt.CompoundTagvoidkjs$setRawPersistentData(@Nullable net.minecraft.nbt.CompoundTag tag) abstract net.minecraft.world.level.Levellevel()abstract voidmoveTo(double x, double y, double z, float yaw, float pitch) abstract voidplayerTouch(net.minecraft.world.entity.player.Player arg) abstract voidpush(double x, double y, double z) abstract voidsetDeltaMovement(double x, double y, double z) abstract voidsetGlowingTag(boolean glowing) abstract voidsetXRot(float pitch) abstract voidsetYRot(float yaw) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.latvian.mods.kubejs.core.EntityKJS
kjs$attack, kjs$getBlock, kjs$getDisplayName, kjs$getDistance, kjs$getDistance, kjs$getDistanceSq, kjs$getFacing, kjs$getItem, kjs$getLevel, kjs$getMotionX, kjs$getMotionY, kjs$getMotionZ, kjs$getName, kjs$getNbt, kjs$getPassengers, kjs$getProfile, kjs$getScriptType, kjs$getServer, kjs$getTeamId, kjs$getType, kjs$isAmbientCreature, kjs$isAnimal, kjs$isFrame, kjs$isLiving, kjs$isMonster, kjs$isOnScoreboardTeam, kjs$isPeacefulCreature, kjs$isPlayer, kjs$isWaterCreature, kjs$mergeNbt, kjs$playSound, kjs$playSound, kjs$rayTrace, kjs$rayTrace, kjs$rayTraceEntity, kjs$runCommand, kjs$runCommandSilent, kjs$self, kjs$setMotionX, kjs$setMotionY, kjs$setMotionZ, kjs$setNbt, kjs$setPosition, kjs$setPosition, kjs$setPositionAndRotation, kjs$setRotation, kjs$setX, kjs$setY, kjs$setZ, kjs$spawn, kjs$teleportTo, kjs$tellMethods inherited from interface dev.latvian.mods.kubejs.core.MessageSenderKJS
kjs$setActivePostShader, kjs$setStatusMessage
-
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$getPersistentDatain interfaceWithPersistentData
-
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$getRawPersistentDatain interfaceEntityKJS
-
kjs$setRawPersistentData
@HideFromJS public void kjs$setRawPersistentData(@Nullable @Nullable net.minecraft.nbt.CompoundTag tag) - Specified by:
kjs$setRawPersistentDatain interfaceEntityKJS
-
getUUID
-
getStringUUID
-
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
-
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()
-