Class PrivateWorkerCraftingProductionResolver
java.lang.Object
com.minecolonies.core.colony.requestsystem.resolvers.core.AbstractRequestResolver<PrivateCrafting>
com.minecolonies.core.colony.requestsystem.resolvers.core.AbstractCraftingProductionResolver<PrivateCrafting>
com.minecolonies.core.colony.requestsystem.resolvers.PrivateWorkerCraftingProductionResolver
- All Implemented Interfaces:
IRequester,IRequestResolver<PrivateCrafting>,IBuildingBasedRequester
public class PrivateWorkerCraftingProductionResolver
extends AbstractCraftingProductionResolver<PrivateCrafting>
-
Constructor Summary
ConstructorsConstructorDescriptionPrivateWorkerCraftingProductionResolver(@NotNull ILocation location, @NotNull IToken<?> token, @NotNull JobEntry entry) Constructor to initialize. -
Method Summary
Modifier and TypeMethodDescriptiongetFollowupRequestForCompletion(@NotNull IRequestManager manager, @NotNull IRequest<? extends PrivateCrafting> completedRequest) voidonAssignedRequestBeingCancelled(@NotNull IRequestManager manager, @NotNull IRequest<? extends PrivateCrafting> request) Indicates that an assigned request has been cancelled.voidonAssignedRequestCancelled(@NotNull IRequestManager manager, @NotNull IRequest<? extends PrivateCrafting> request) Indicates that an assigned request has been cancelled.voidonRequestedRequestCancelled(@NotNull IRequestManager manager, @NotNull IRequest<?> request) Method called by the request system to notify this requester that a request has been overruled.voidonRequestedRequestComplete(@NotNull IRequestManager manager, @NotNull IRequest<?> request) Method called by the request system to notify this requester that a request is complete.voidresolveForBuilding(@NotNull IRequestManager manager, @NotNull IRequest<? extends PrivateCrafting> request, @NotNull AbstractBuilding building) Resolve the request in a building.Methods inherited from class com.minecolonies.core.colony.requestsystem.resolvers.core.AbstractCraftingProductionResolver
attemptResolveForBuilding, attemptResolveForBuildingAndStack, attemptResolveRequest, canBuildingCraftStack, canResolveRequest, createNewRequestForStack, createRequestsForRecipe, getBuilding, getJobEntry, getRequestType, isValid, onAssignedToThisResolverForBuilding, onRequestAssigned, resolveRequestMethods inherited from class com.minecolonies.core.colony.requestsystem.resolvers.core.AbstractRequestResolver
getId, getLocation, getPriority, getRequesterDisplayName, getSuitabilityMetricMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.requestsystem.requester.IRequester
getId, getLocation, getRequesterDisplayNameMethods inherited from interface com.minecolonies.api.colony.requestsystem.resolver.IRequestResolver
onColonyUpdate
-
Constructor Details
-
Method Details
-
getFollowupRequestForCompletion
@Nullable public @Nullable List<IRequest<?>> getFollowupRequestForCompletion(@NotNull @NotNull IRequestManager manager, @NotNull @NotNull IRequest<? extends PrivateCrafting> completedRequest) -
onAssignedRequestBeingCancelled
public void onAssignedRequestBeingCancelled(@NotNull @NotNull IRequestManager manager, @NotNull @NotNull IRequest<? extends PrivateCrafting> request) Description copied from interface:IRequestResolverIndicates that an assigned request has been cancelled. Is called before graph is updated.- Parameters:
manager- The manager that indicates the cancellingrequest- The request that has been cancelled.
-
onAssignedRequestCancelled
public void onAssignedRequestCancelled(@NotNull @NotNull IRequestManager manager, @NotNull @NotNull IRequest<? extends PrivateCrafting> request) Description copied from interface:IRequestResolverIndicates that an assigned request has been cancelled. Is called after the graph has been updated.- Parameters:
manager- The manager that indicates the cancellingrequest- The request that has been cancelled.
-
onRequestedRequestComplete
public void onRequestedRequestComplete(@NotNull @NotNull IRequestManager manager, @NotNull @NotNull IRequest<?> request) Description copied from interface:IRequesterMethod called by the request system to notify this requester that a request is complete.- Parameters:
manager- the request manager.request- the request.
-
onRequestedRequestCancelled
public void onRequestedRequestCancelled(@NotNull @NotNull IRequestManager manager, @NotNull @NotNull IRequest<?> request) Description copied from interface:IRequesterMethod called by the request system to notify this requester that a request has been overruled.- Parameters:
manager- the request manager.request- the request.
-
resolveForBuilding
public void resolveForBuilding(@NotNull @NotNull IRequestManager manager, @NotNull @NotNull IRequest<? extends PrivateCrafting> request, @NotNull @NotNull AbstractBuilding building) Description copied from class:AbstractCraftingProductionResolverResolve the request in a building.- Overrides:
resolveForBuildingin classAbstractCraftingProductionResolver<PrivateCrafting>- Parameters:
manager- the request manager.request- the request.building- the building.
-