Package pers.neige.neigeitems.ref.entity
Class RefEntity
-
- All Implemented Interfaces:
public abstract class RefEntity
-
-
Field Summary
Fields Modifier and Type Field Description public final static RefEntityDataAccessor<String>DATA_CUSTOM_NAME_STRINGpublic final static RefEntityDataAccessor<Optional<RefComponent>>DATA_CUSTOM_NAME_COMPONENTpublic final static RefEntityDataAccessor<Boolean>DATA_CUSTOM_NAME_VISIBLEpublic final Randomrandompublic doublemotXpublic doublemotYpublic doublemotZpublic floatyawpublic floatpitchpublic floatlastYawpublic floatlastPitchpublic RefWorldworldpublic doublelastXpublic doublelastYpublic doublelastZpublic doublelocXpublic doublelocYpublic doublelocZ
-
Constructor Summary
Constructors Constructor Description RefEntity()
-
Method Summary
Modifier and Type Method Description native EntitygetBukkitEntity()native booleansaveAsPassenger(RefNbtTagCompound nbt)native booleansave(RefNbtTagCompound nbt)native RefNbtTagCompoundsaveWithoutId(RefNbtTagCompound nbt)native voidload(RefNbtTagCompound nbt)native voidmove(RefMoverType movementType, double d0, double d1, double d2)native voidmove(RefMoverType movementType, RefVec3 movement)native EntitygetRootVehicle()native voidabsMoveTo(double x, double y, double z, float yaw, float pitch)native voidmoveTo(double x, double y, double z, float yaw, float pitch)native RefVec3getDeltaMovement()native voidsetDeltaMovement(RefVec3 velocity)native voidaddDeltaMovement(RefVec3 velocity)native voidsetDeltaMovement(double x, double y, double z)native floatgetYaw()native voidsetYaw(float yaw)native floatgetPitch()native voidsetPitch(float pitch)native floatgetHeadRotation()native voidsetHeadRotation(float headRotation)native voidlookAt(RefAnchor anchorPoint, RefVec3 target)final native floatgetEyeHeight()native RefComponentgetCustomName()native voidsetCustomName(RefComponent name)native booleanhasCustomName()native RefAABBgetBoundingBox()native voidsetPosition(double x, double y, double z)native booleanisInWater()native booleanisPassenger()native RefEntityType<out Object>getType()native RefSynchedEntityDatagetEntityData()native RefPacket<out Object>getAddEntityPacket()native intgetId()native voidtick()native voidsetInvisible(boolean invisible)-
-
Method Detail
-
getBukkitEntity
native Entity getBukkitEntity()
-
saveAsPassenger
native boolean saveAsPassenger(RefNbtTagCompound nbt)
-
save
native boolean save(RefNbtTagCompound nbt)
-
saveWithoutId
native RefNbtTagCompound saveWithoutId(RefNbtTagCompound nbt)
-
load
native void load(RefNbtTagCompound nbt)
-
move
native void move(RefMoverType movementType, double d0, double d1, double d2)
-
move
native void move(RefMoverType movementType, RefVec3 movement)
-
getRootVehicle
native Entity getRootVehicle()
-
absMoveTo
native void absMoveTo(double x, double y, double z, float yaw, float pitch)
-
moveTo
native void moveTo(double x, double y, double z, float yaw, float pitch)
-
getDeltaMovement
native RefVec3 getDeltaMovement()
-
setDeltaMovement
native void setDeltaMovement(RefVec3 velocity)
-
addDeltaMovement
native void addDeltaMovement(RefVec3 velocity)
-
setDeltaMovement
native void setDeltaMovement(double x, double y, double z)
-
getYaw
native float getYaw()
-
setYaw
native void setYaw(float yaw)
-
getPitch
native float getPitch()
-
setPitch
native void setPitch(float pitch)
-
getHeadRotation
native float getHeadRotation()
-
setHeadRotation
native void setHeadRotation(float headRotation)
-
getEyeHeight
final native float getEyeHeight()
-
getCustomName
native RefComponent getCustomName()
-
setCustomName
native void setCustomName(RefComponent name)
-
hasCustomName
native boolean hasCustomName()
-
getBoundingBox
native RefAABB getBoundingBox()
-
setPosition
native void setPosition(double x, double y, double z)
-
isInWater
native boolean isInWater()
-
isPassenger
native boolean isPassenger()
-
getType
native RefEntityType<out Object> getType()
-
getEntityData
native RefSynchedEntityData getEntityData()
-
getAddEntityPacket
native RefPacket<out Object> getAddEntityPacket()
-
getId
native int getId()
-
tick
native void tick()
-
setInvisible
native void setInvisible(boolean invisible)
-
-
-
-