package electrosphere.entity;

import org.joml.Vector3d;

import electrosphere.entity.types.collision.CollisionObjUtils;

/**
 * Client only entity utility functions
 */
public class ClientEntityUtils {
    


    /**
     * Called when the creature is first spawned to serialize to all people in its initial chunk
     * @param entity
     * @param position
     */
    public static void initiallyPositionEntity(Entity entity, Vector3d position){
        //reposition entity
        CollisionObjUtils.clientPositionCharacter(entity, position);
    }

    /**
     * Destroys an entity on the client
     * @param entity the entity to destroy
     */
    public static void destroyEntity(Entity entity){
        //deregister all behavior trees
        EntityUtils.cleanUpEntity(entity);
    }
    

}
