ReachLocationTask

public class ReachLocationTask extends ObjectiveTask

Class ReachLocationTask. Provides reachlocationtask functionality for the Hytale server.

java.lang.Object > ObjectiveTask > ReachLocationTask

Field Summary

completed

private boolean completed

Field completed.

markerLoaded

private boolean markerLoaded

Field markerLoaded.

targetLocationId

final String targetLocationId

Field targetLocationId.

reachLocationMarkerEntities

final List> reachLocationMarkerEntities

Field reachLocationMarkerEntities.

reachLocationMarkerComponent

final ReachLocationMarker reachLocationMarkerComponent

Field reachLocationMarkerComponent.

currentLocation

final Vector3d currentLocation

Field currentLocation.

closestMarker

final Ref closestMarker

Field closestMarker.

closestMarkerTransformComponent

final TransformComponent closestMarkerTransformComponent

Field closestMarkerTransformComponent.

closestMarkerReachComponent

final ReachLocationMarker closestMarkerReachComponent

Field closestMarkerReachComponent.

markerEntityReference

final Ref markerEntityReference

Field markerEntityReference.

markerTransformComponent

final TransformComponent markerTransformComponent

Field markerTransformComponent.

markerReachLocationComponent

final ReachLocationMarker markerReachLocationComponent

Field markerReachLocationComponent.

pos

final Vector3d pos

Field pos.

distance

final double distance

Field distance.

locationName

final String locationName

Field locationName.

markerId

final String markerId

Field markerId.

packet

final com.hypixel.hytale.protocol.ObjectiveTask packet

Field packet.

uuidComponent

final UUIDComponent uuidComponent

Field uuidComponent.

Method Detail

ReachLocationTask

public public ReachLocationTask (@Nonnull final ObjectiveTaskAsset asset, final int taskSetIndex, final int taskIndex)

Method ReachLocationTask.

Parameters:
@Nonnull final ObjectiveTaskAsset asset
final int taskSetIndex
final int taskIndex

checkCompletion

public boolean checkCompletion ()

Method checkCompletion.

getAsset

public ReachLocationTaskAsset getAsset ()

Method getAsset.

getMarkerId

private String getMarkerId (@Nonnull final Objective objective)

Method getMarkerId.

Parameters:
@Nonnull final Objective objective

setup0

protected TransactionRecord[] setup0 (@Nonnull final Objective objective, @Nonnull final World world, @Nonnull final Store store)

Method setup0.

Parameters:
@Nonnull final Objective objective
@Nonnull final World world
@Nonnull final Store store

MapMarker

public new MapMarker (this.getMarkerId(objective)

Method MapMarker.

Parameters:
this.getMarkerId(objective this.getMarkerId(objective

Transform

public new Transform (closestPosition)

Method Transform.

Parameters:
closestPosition closestPosition

setupMarker

public void setupMarker (@Nonnull final Objective objective, @Nonnull final ReachLocationMarker locationMarkerEntity, @Nonnull final Vector3d position, @Nonnull final CommandBuffer commandBuffer)

Method setupMarker.

Parameters:
@Nonnull final Objective objective
@Nonnull final ReachLocationMarker locationMarkerEntity
@Nonnull final Vector3d position
@Nonnull final CommandBuffer commandBuffer

toPacket

public com.hypixel.hytale.protocol.ObjectiveTask toPacket (@Nonnull final Objective objective)

Method toPacket.

Parameters:
@Nonnull final Objective objective

onPlayerReachLocationMarker

public void onPlayerReachLocationMarker (@Nonnull final Store store, @Nonnull final Ref ref, @Nonnull final String locationMarkerId, @Nonnull final Objective objective)

Method onPlayerReachLocationMarker.

Parameters:
@Nonnull final Store store
@Nonnull final Ref ref
@Nonnull final String locationMarkerId
@Nonnull final Objective objective

toString

public String toString ()

Method toString.

KeyedCodec

public new KeyedCodec ("MarkerLoaded", Codec.BOOLEAN)

Method KeyedCodec.

Parameters:
"MarkerLoaded" "MarkerLoaded"
Codec.BOOLEAN Codec.BOOLEAN