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_STRING
public final static RefEntityDataAccessor<Optional<RefComponent>>
DATA_CUSTOM_NAME_COMPONENT
public final static RefEntityDataAccessor<Boolean>
DATA_CUSTOM_NAME_VISIBLE
public double
motX
public double
motY
public double
motZ
public float
yaw
public float
pitch
public float
lastYaw
public float
lastPitch
public RefWorld
world
public double
lastX
public double
lastY
public double
lastZ
public double
locX
public double
locY
public double
locZ
-
Constructor Summary
Constructors Constructor Description RefEntity()
-
Method Summary
Modifier and Type Method Description native Entity
getBukkitEntity()
native boolean
saveAsPassenger(RefNbtTagCompound nbt)
native boolean
save(RefNbtTagCompound nbt)
native RefNbtTagCompound
saveWithoutId(RefNbtTagCompound nbt)
native void
load(RefNbtTagCompound nbt)
native void
move(RefMoverType movementType, double d0, double d1, double d2)
native void
move(RefMoverType movementType, RefVec3 movement)
native Entity
getRootVehicle()
native void
absMoveTo(double x, double y, double z, float yaw, float pitch)
native void
moveTo(double x, double y, double z, float yaw, float pitch)
native RefVec3
getDeltaMovement()
native void
setDeltaMovement(RefVec3 velocity)
native void
addDeltaMovement(RefVec3 velocity)
native void
setDeltaMovement(double x, double y, double z)
native float
getYaw()
native void
setYaw(float yaw)
native float
getPitch()
native void
setPitch(float pitch)
native float
getHeadRotation()
native void
setHeadRotation(float headRotation)
native void
lookAt(RefAnchor anchorPoint, RefVec3 target)
final native float
getEyeHeight()
native RefComponent
getCustomName()
native void
setCustomName(RefComponent name)
native boolean
hasCustomName()
native RefAABB
getBoundingBox()
native void
setPosition(double x, double y, double z)
native boolean
isInWater()
native boolean
isPassenger()
native RefEntityType<out Object>
getType()
native RefSynchedEntityData
getEntityData()
native RefPacket<out Object>
getAddEntityPacket()
native int
getId()
native void
tick()
native void
setInvisible(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)
-
-
-
-