Class ReachLocationTask
java.lang.Object
com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
com.hypixel.hytale.builtin.adventure.objectives.task.ReachLocationTask
- All Implemented Interfaces:
NetworkSerializer<Objective,ObjectiveTask>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ReachLocationTask> private booleanstatic Stringprivate booleanprivate static final ComponentType<EntityStore, ReachLocationMarker> private static final ComponentType<EntityStore, TransformComponent> Fields inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
asset, BASE_CODEC, complete, eventRegistry, markers, nonSerializedTransactionRecords, serializedTransactionRecords, taskIndex, taskRef, taskSetIndex -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReachLocationTask(ObjectiveTaskAsset asset, int taskSetIndex, int taskIndex) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAsset()private StringgetMarkerId(Objective objective) voidonPlayerReachLocationMarker(Store<EntityStore> store, Ref<EntityStore> ref, String locationMarkerId, Objective objective) protected TransactionRecord[]setup0(Objective objective, World world, Store<EntityStore> store) voidsetupMarker(Objective objective, ReachLocationMarker locationMarkerEntity, Vector3d position, CommandBuffer<EntityStore> commandBuffer) toString()Methods inherited from class com.hypixel.hytale.builtin.adventure.objectives.task.ObjectiveTask
addMarker, areTaskConditionsFulfilled, assetChanged, complete, completeTransactionRecords, consumeTaskConditions, getInfoMessage, getMarkers, getNonSerializedTransactionRecords, getSerializedTransactionRecords, isComplete, removeMarker, revertTransactionRecords, sendUpdateObjectiveTaskPacket, setAsset, setup, unloadTransactionRecords
-
Field Details
-
CODEC
-
MARKER_ICON
-
TRANSFORM_COMPONENT_TYPE
-
REACH_LOCATION_MARKER_COMPONENT_TYPE
private static final ComponentType<EntityStore,ReachLocationMarker> REACH_LOCATION_MARKER_COMPONENT_TYPE -
completed
private boolean completed -
markerLoaded
private boolean markerLoaded
-
-
Constructor Details
-
ReachLocationTask
-
ReachLocationTask
protected ReachLocationTask()
-
-
Method Details
-
checkCompletion
public boolean checkCompletion()- Specified by:
checkCompletionin classObjectiveTask
-
getAsset
- Overrides:
getAssetin classObjectiveTask
-
getMarkerId
-
setup0
@Nullable protected TransactionRecord[] setup0(@Nonnull Objective objective, @Nonnull World world, @Nonnull Store<EntityStore> store) - Specified by:
setup0in classObjectiveTask
-
setupMarker
public void setupMarker(@Nonnull Objective objective, @Nonnull ReachLocationMarker locationMarkerEntity, @Nonnull Vector3d position, @Nonnull CommandBuffer<EntityStore> commandBuffer) -
toPacket
-
onPlayerReachLocationMarker
public void onPlayerReachLocationMarker(@Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref, @Nonnull String locationMarkerId, @Nonnull Objective objective) -
toString
- Overrides:
toStringin classObjectiveTask
-