EntityRefCollisionProvider

public class EntityRefCollisionProvider

Class EntityRefCollisionProvider. Provides entityrefcollisionprovider functionality for the Hytale server.

java.lang.Object > EntityRefCollisionProvider

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.

tmpResults

protected List> tmpResults

Field tmpResults.

tmpVector

protected Vector3d tmpVector

Field tmpVector.

hitDetail

protected String hitDetail

Field hitDetail.

boundingBoxComponent

final BoundingBox boundingBoxComponent

Field boundingBoxComponent.

transformComponent

final TransformComponent transformComponent

Field transformComponent.

entityBoundingBox

final Box entityBoundingBox

Field entityBoundingBox.

archetype

final Archetype archetype

Field archetype.

legacy

final Entity legacy

Field legacy.

Method Detail

EntityRefCollisionProvider

public public EntityRefCollisionProvider ()

Method EntityRefCollisionProvider.

getCount

public int getCount ()

Method getCount.

getContact

public EntityContactData getContact (final int i)

Method getContact.

Parameters:
final int i

clear

public void clear ()

Method clear.

computeNearest

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

Method computeNearest.

Parameters:
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Box entityBoundingBox
@Nonnull final Vector3d pos
@Nonnull final Vector3d dir
@Nullable final Ref ignoreSelf
@Nullable final Ref ignore

iterateEntitiesInSphere

protected void iterateEntitiesInSphere (@Nonnull final CommandBuffer commandBuffer, @Nonnull final Vector3d pos, @Nonnull final Vector3d dir, @Nonnull final Box boundingBox, final double radius, @Nonnull final TriConsumer, CommandBuffer> consumer)

Method iterateEntitiesInSphere.

Parameters:
@Nonnull final CommandBuffer commandBuffer
@Nonnull final Vector3d pos
@Nonnull final Vector3d dir
@Nonnull final Box boundingBox
final double radius
@Nonnull final TriConsumer, CommandBuffer> consumer

setContact

protected void setContact (@Nonnull final Ref ref, @Nonnull final String detailName)

Method setContact.

Parameters:
@Nonnull final Ref ref
@Nonnull final String detailName

isColliding

protected boolean isColliding (@Nonnull final Ref ref, @Nonnull final Vector2d minMax, @Nonnull final CommandBuffer commandBuffer)

Method isColliding.

Parameters:
@Nonnull final Ref ref
@Nonnull final Vector2d minMax
@Nonnull final CommandBuffer commandBuffer

clearRefs

protected void clearRefs ()

Method clearRefs.

defaultEntityFilter

static boolean defaultEntityFilter (@Nonnull final Ref entity, @Nonnull final CommandBuffer commandBuffer)

Method defaultEntityFilter.

Parameters:
@Nonnull final Ref entity
@Nonnull final CommandBuffer commandBuffer

acceptNearestIgnore

protected void acceptNearestIgnore (@Nonnull final Ref entity, @Nonnull final CommandBuffer commandBuffer)

Method acceptNearestIgnore.

Parameters:
@Nonnull final Ref entity
@Nonnull final CommandBuffer commandBuffer