Class CustomEntity
java.lang.Object
net.raphimc.viabedrock.api.model.entity.Entity
net.raphimc.viabedrock.api.model.entity.CustomEntity
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Entity
Entity.BoundingBoxDimensions -
Field Summary
Fields inherited from class Entity
age, entityData, hasBossBar, hasNectar, javaId, javaType, javaUuid, mountRuntimeId, name, onGround, passengers, position, rotation, runtimeId, type, uniqueId, user -
Constructor Summary
ConstructorsConstructorDescriptionCustomEntity(com.viaversion.viaversion.api.connection.UserConnection user, long uniqueId, long runtimeId, String type, int javaId, EntityDefinitions.EntityDefinition entityDefinition) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidvoidremove()voidsetPosition(Position3f position) voidsetRotation(Position3f rotation) voidtick()Methods inherited from class Entity
addPassenger, addPrimaryPassenger, admitSpatialUpdate, age, boundingBoxDimensions, clearSpatialInterpolation, entityData, entityFlags, entityProperties, eyeOffset, finishEntityDataUpdate, getJavaEntityDataIndex, hasBossBar, hasNectar, isOffhandShield, isOnGround, javaId, javaPosition, javaRotation, javaType, javaUuid, lastReceivedInterpolationTicks, lastReceivedMovementFlags, lastReceivedPosition, lastReceivedRotation, mountEntityRuntimeId, movementEffect, name, nativeActorBounds, nativeActorSnapshot, nativeColors, nativeIntegerMetadata, nativeLifetime, nativeSpatialCommand, nativeTargetId, passengers, pickingHitboxes, playSound, position, refreshVehiclePrediction, removePassenger, retainEntityProperties, retainSpatialUpdate, riderSeatPosition, rotation, runtimeId, scale, sendMovementEffectSnapshot, sendNativeActorSnapshot, sendNativeActorSnapshot, sendNativeSpatialCommand, sendRemotePlayerMovement, sendRemotePlayerMovement, setHasBossBar, setHasNectar, setJavaPosition, setJavaRotation, setMountEntityRuntimeId, setMovementEffect, setName, setOffhandShield, setOnGround, setPredictedJavaPosition, translateEntityData, translateEntityProperties, type, uniqueId, updateEntityData, updateEntityData, updateEntityData
-
Constructor Details
-
CustomEntity
public CustomEntity(com.viaversion.viaversion.api.connection.UserConnection user, long uniqueId, long runtimeId, String type, int javaId, EntityDefinitions.EntityDefinition entityDefinition)
-
-
Method Details
-
tick
-
setPosition
- Overrides:
setPositionin classEntity
-
setRotation
- Overrides:
setRotationin classEntity
-
remove
-
onEntityDataChanged
protected void onEntityDataChanged()- Overrides:
onEntityDataChangedin classEntity
-
refreshNativeRenderer
public void refreshNativeRenderer()
-