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.
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
Method getContact.
- Parameters:
final intindex
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 BoxentityBoundingBox@Nonnull final Vector3dpos@Nonnull final Vector3ddir@Nullable final RefignoreSelf@Nullable final Refignore@Nonnull final ComponentAccessorcomponentAccessor
acceptNearestIgnore
public
>
acceptNearestIgnore
(ref, _this, componentAccessor)
Method acceptNearestIgnore.
- Parameters:
refref_this_thiscomponentAccessorcomponentAccessor
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 Vector3dpos@Nonnull final Vector3ddir@Nonnull final BoxboundingBoxfinal doubleradius@Nonnull final BiConsumer, EntityCollisionProvider>consumer@Nonnull final BiConsumer, EntityCollisionProvider>consumerPlayer@Nonnull final ComponentAccessorcomponentAccessor
isColliding
protected
boolean
isColliding
(@Nonnull final Ref ref, @Nonnull final Vector2d minMax, @Nonnull final ComponentAccessor componentAccessor)
Method isColliding.
- Parameters:
@Nonnull final Refref@Nonnull final Vector2dminMax@Nonnull final ComponentAccessorcomponentAccessor
clearRefs
protected
void
clearRefs
()
Method clearRefs.
defaultEntityFilter
static
boolean
defaultEntityFilter
(@Nonnull final Ref ref, @Nonnull final ComponentAccessor componentAccessor)
Method defaultEntityFilter.
- Parameters:
@Nonnull final Refref@Nonnull final ComponentAccessorcomponentAccessor