EntityCollisionProvider

public class EntityCollisionProvider

Class EntityCollisionProvider. Provides entitycollisionprovider functionality for the Hytale server.

java.lang.Object > EntityCollisionProvider

Field Summary

contacts

protected EntityContactData[] contacts

Field contacts.

sortBuffer

protected EntityContactData[] sortBuffer

Field sortBuffer.

count

protected int count

Field count.

nearestCollisionStart

protected double nearestCollisionStart

Field nearestCollisionStart.

position

protected Vector3d position

Field position.

direction

protected Vector3d direction

Field direction.

boundingBox

protected Box boundingBox

Field boundingBox.

ignoreSelf

protected Ref ignoreSelf

Field ignoreSelf.

ignoreOther

protected Ref ignoreOther

Field ignoreOther.

results

final ObjectList> results

Field results.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

archetype

final Archetype archetype

Field archetype.

isProjectile

final boolean isProjectile

Field isProjectile.

isDead

final boolean isDead

Field isDead.

entity

final Entity entity

Field entity.

Method Detail

EntityCollisionProvider

public public EntityCollisionProvider ()

Method EntityCollisionProvider.

getCount

public int getCount ()

Method getCount.

getContact

public EntityContactData getContact (final int index)

Method getContact.

Parameters:
final int index

clear

public void clear ()

Method clear.

computeNearest

public double computeNearest (@Nonnull final Box entityBoundingBox, @Nonnull final Vector3d pos, @Nonnull final Vector3d dir, @Nullable final Ref ignoreSelf, @Nullable final Ref ignore, @Nonnull final ComponentAccessor componentAccessor)

Method computeNearest.

Parameters:
@Nonnull final Box entityBoundingBox
@Nonnull final Vector3d pos
@Nonnull final Vector3d dir
@Nullable final Ref ignoreSelf
@Nullable final Ref ignore
@Nonnull final ComponentAccessor componentAccessor

acceptNearestIgnore

public > acceptNearestIgnore (ref, _this, componentAccessor)

Method acceptNearestIgnore.

Parameters:
ref ref
_this _this
componentAccessor componentAccessor

iterateEntitiesInSphere

protected void iterateEntitiesInSphere (@Nonnull final Vector3d pos, @Nonnull final Vector3d dir, @Nonnull final Box boundingBox, final double radius, @Nonnull final BiConsumer, EntityCollisionProvider> consumer, @Nonnull final BiConsumer, EntityCollisionProvider> consumerPlayer, @Nonnull final ComponentAccessor componentAccessor)

Method iterateEntitiesInSphere.

Parameters:
@Nonnull final Vector3d pos
@Nonnull final Vector3d dir
@Nonnull final Box boundingBox
final double radius
@Nonnull final BiConsumer, EntityCollisionProvider> consumer
@Nonnull final BiConsumer, EntityCollisionProvider> consumerPlayer
@Nonnull final ComponentAccessor componentAccessor

setContact

protected void setContact (@Nonnull final Entity entity)

Method setContact.

Parameters:
@Nonnull final Entity entity

isColliding

protected boolean isColliding (@Nonnull final Ref ref, @Nonnull final Vector2d minMax, @Nonnull final ComponentAccessor componentAccessor)

Method isColliding.

Parameters:
@Nonnull final Ref ref
@Nonnull final Vector2d minMax
@Nonnull final ComponentAccessor componentAccessor

clearRefs

protected void clearRefs ()

Method clearRefs.

defaultEntityFilter

static boolean defaultEntityFilter (@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)

Method defaultEntityFilter.

Parameters:
@Nonnull final Ref ref
@Nonnull final ComponentAccessor componentAccessor