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 intprotected intprotected intFields inherited from class com.hypixel.hytale.builtin.adventure.objectives.config.markerarea.ObjectiveLocationMarkerArea
entryAreaBox, exitAreaBox -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObjectiveLocationAreaRadius(int entryRadius, int exitRadius) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintintprivate static voidgetPlayersInArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, Vector3d markerPosition, int radius) voidgetPlayersInEntryArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, Vector3d markerPosition) voidgetPlayersInExitArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, Vector3d markerPosition) booleanhasPlayerInExitArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, ComponentType<EntityStore, PlayerRef> playerRefComponentType, Vector3d markerPosition, CommandBuffer<EntityStore> commandBuffer) booleanisPlayerInEntryArea(Vector3d playerPosition, Vector3d markerPosition) toString()Methods inherited from class com.hypixel.hytale.builtin.adventure.objectives.config.markerarea.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:
-
entryArea
protected int entryArea -
exitArea
protected int exitArea
-
-
Constructor Details
-
ObjectiveLocationAreaRadius
public ObjectiveLocationAreaRadius(int entryRadius, int exitRadius) -
ObjectiveLocationAreaRadius
protected ObjectiveLocationAreaRadius()
-
-
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 Vector3d markerPosition) - Specified by:
getPlayersInEntryAreain classObjectiveLocationMarkerArea
-
getPlayersInExitArea
public void getPlayersInExitArea(@Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, @Nonnull List<Ref<EntityStore>> results, @Nonnull Vector3d markerPosition) - Specified by:
getPlayersInExitAreain classObjectiveLocationMarkerArea
-
hasPlayerInExitArea
public boolean hasPlayerInExitArea(@Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, @Nonnull ComponentType<EntityStore, PlayerRef> playerRefComponentType, @Nonnull Vector3d markerPosition, @Nonnull CommandBuffer<EntityStore> commandBuffer) - Specified by:
hasPlayerInExitAreain classObjectiveLocationMarkerArea
-
isPlayerInEntryArea
public boolean isPlayerInEntryArea(@Nonnull Vector3d playerPosition, @Nonnull Vector3d markerPosition) - Specified by:
isPlayerInEntryAreain classObjectiveLocationMarkerArea
-
computeAreaBoxes
protected void computeAreaBoxes()- Specified by:
computeAreaBoxesin classObjectiveLocationMarkerArea
-
getPlayersInArea
private static void getPlayersInArea(@Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, @Nonnull List<Ref<EntityStore>> results, @Nonnull Vector3d markerPosition, int radius) -
toString
- Overrides:
toStringin classObjectiveLocationMarkerArea
-