public class ObjectiveLocationAreaBox extends ObjectiveLocationMarkerArea
Class ObjectiveLocationAreaBox. Provides objectivelocationareabox functionality for the Hytale server.
java.lang.Object > ObjectiveLocationMarkerArea > ObjectiveLocationAreaBox
Field Summary
entryArea
private
Box
entryArea
Field entryArea.
exitArea
private
Box
exitArea
Field exitArea.
reference
final
Ref
reference
Field reference.
transformComponent
final
TransformComponent
transformComponent
Field transformComponent.
snappedYaw
final
float
snappedYaw
Field snappedYaw.
entry
final
Box
entry
Field entry.
exit
final
Box
exit
Field exit.
Method Detail
ObjectiveLocationAreaBox
Method ObjectiveLocationAreaBox.
getPlayersInEntryArea
public
void
getPlayersInEntryArea
(@Nonnull final SpatialResource, EntityStore> spatialComponent, @Nonnull final List> results, @Nonnull final Vector3d markerPosition)
Method getPlayersInEntryArea.
- Parameters:
@Nonnull final SpatialResource, EntityStore>spatialComponent@Nonnull final List>results@Nonnull final Vector3dmarkerPosition
getPlayersInExitArea
public
void
getPlayersInExitArea
(@Nonnull final SpatialResource, EntityStore> spatialComponent, @Nonnull final List> results, @Nonnull final Vector3d markerPosition)
Method getPlayersInExitArea.
- Parameters:
@Nonnull final SpatialResource, EntityStore>spatialComponent@Nonnull final List>results@Nonnull final Vector3dmarkerPosition
hasPlayerInExitArea
public
boolean
hasPlayerInExitArea
(@Nonnull final SpatialResource, EntityStore> spatialComponent, @Nonnull final ComponentType playerRefComponentType, @Nonnull final Vector3d markerPosition, @Nonnull final CommandBuffer commandBuffer)
Method hasPlayerInExitArea.
- Parameters:
@Nonnull final SpatialResource, EntityStore>spatialComponent@Nonnull final ComponentTypeplayerRefComponentType@Nonnull final Vector3dmarkerPosition@Nonnull final CommandBuffercommandBuffer
isPlayerInEntryArea
public
boolean
isPlayerInEntryArea
(@Nonnull final Vector3d playerPosition, @Nonnull final Vector3d markerPosition)
Method isPlayerInEntryArea.
- Parameters:
@Nonnull final Vector3dplayerPosition@Nonnull final Vector3dmarkerPosition
getRotatedArea
Method getRotatedArea.
- Parameters:
final floatyawfinal floatpitch
computeAreaBoxes
protected
void
computeAreaBoxes
()
Method computeAreaBoxes.
getPlayersInArea
static
void
getPlayersInArea
(@Nonnull final SpatialResource, EntityStore> spatialComponent, final List> results, @Nonnull final Vector3d markerPosition, @Nonnull final Box box)
Method getPlayersInArea.
- Parameters:
@Nonnull final SpatialResource, EntityStore>spatialComponentfinal List>results@Nonnull final Vector3dmarkerPosition@Nonnull final Boxbox
toString
public
String
toString
()
Method toString.