Class ObjectiveLocationAreaBox
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.config.markerarea.ObjectiveLocationMarkerArea
com.hypixel.hytale.builtin.adventure.objectives.config.markerarea.ObjectiveLocationAreaBox
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ObjectiveLocationAreaBox> private static final Boxprivate static final Boxprivate Boxprivate BoxFields inherited from class com.hypixel.hytale.builtin.adventure.objectives.config.markerarea.ObjectiveLocationMarkerArea
entryAreaBox, exitAreaBox -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate static voidgetPlayersInArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, Vector3d markerPosition, Box box) voidgetPlayersInEntryArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, Vector3d markerPosition) voidgetPlayersInExitArea(SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, Vector3d markerPosition) getRotatedArea(float yaw, float pitch) 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
-
Field Details
-
CODEC
-
DEFAULT_ENTRY_BOX
-
DEFAULT_EXIT_BOX
-
entryArea
-
exitArea
-
-
Constructor Details
-
ObjectiveLocationAreaBox
-
ObjectiveLocationAreaBox
protected ObjectiveLocationAreaBox()
-
-
Method Details
-
getEntryArea
-
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
-
getRotatedArea
- Overrides:
getRotatedAreain classObjectiveLocationMarkerArea
-
computeAreaBoxes
protected void computeAreaBoxes()- Specified by:
computeAreaBoxesin classObjectiveLocationMarkerArea
-
getPlayersInArea
private static void getPlayersInArea(@Nonnull SpatialResource<Ref<EntityStore>, EntityStore> spatialComponent, List<Ref<EntityStore>> results, @Nonnull Vector3d markerPosition, @Nonnull Box box) -
toString
- Overrides:
toStringin classObjectiveLocationMarkerArea
-