26 lines
		
	
	
		
			560 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			560 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| 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);
 | |
|     }
 | |
|     
 | |
| 
 | |
| }
 |