Contents
Class ObjectiveLocationAreaRadius
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.config.markerarea.ObjectiveLocationMarkerArea
com.hypixel.hytale.builtin.adventure.objectives.config.markerarea.ObjectiveLocationAreaRadius
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ObjectiveLocationAreaRadius> static final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidgetPlayersInEntryArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, org.joml.Vector3d markerPosition) voidgetPlayersInExitArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, org.joml.Vector3d markerPosition) booleanhasPlayerInExitArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, ComponentType<EntityStore, PlayerRef> playerRefComponentType, org.joml.Vector3d markerPosition, CommandBuffer<EntityStore> commandBuffer) booleanisPlayerInEntryArea(org.joml.Vector3d playerPosition, org.joml.Vector3d markerPosition) toString()Methods inherited from class ObjectiveLocationMarkerArea
getBoxForEntryArea, getBoxForExitArea, getRotatedArea
-
Field Details
-
CODEC
-
DEFAULT_ENTRY_RADIUS
public static final int DEFAULT_ENTRY_RADIUS- See Also:
-
DEFAULT_EXIT_RADIUS
public static final int DEFAULT_EXIT_RADIUS- See Also:
-
-
Constructor Details
-
ObjectiveLocationAreaRadius
public ObjectiveLocationAreaRadius(int entryRadius, int exitRadius)
-
-
Method Details
-
getEntryArea
public int getEntryArea() -
getExitArea
public int getExitArea() -
getPlayersInEntryArea
public void getPlayersInEntryArea(@Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, @Nonnull List<Ref<EntityStore>> results, @Nonnull org.joml.Vector3d markerPosition) - Specified by:
getPlayersInEntryAreain classObjectiveLocationMarkerArea
-
getPlayersInExitArea
public void getPlayersInExitArea(@Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, @Nonnull List<Ref<EntityStore>> results, @Nonnull org.joml.Vector3d markerPosition) - Specified by:
getPlayersInExitAreain classObjectiveLocationMarkerArea
-
hasPlayerInExitArea
public boolean hasPlayerInExitArea(@Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, @Nonnull ComponentType<EntityStore, PlayerRef> playerRefComponentType, @Nonnull org.joml.Vector3d markerPosition, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
hasPlayerInExitAreain classObjectiveLocationMarkerArea
-
isPlayerInEntryArea
public boolean isPlayerInEntryArea(@Nonnull org.joml.Vector3d playerPosition, @Nonnull org.joml.Vector3d markerPosition) - Specified by:
isPlayerInEntryAreain classObjectiveLocationMarkerArea
-
toString
- Overrides:
toStringin classObjectiveLocationMarkerArea
-