use of com.minecolonies.coremod.colony.requestsystem.resolvers.DeliveryRequestResolver in project minecolonies by Minecolonies.
the class DeliveryRequestResolverFactory method deserialize.
@NotNull
@Override
public DeliveryRequestResolver deserialize(@NotNull final IFactoryController controller, @NotNull final NBTTagCompound nbt) {
final IToken token = controller.deserialize(nbt.getCompoundTag(NBT_TOKEN));
final ILocation location = controller.deserialize(nbt.getCompoundTag(NBT_LOCATION));
return new DeliveryRequestResolver(location, token);
}
use of com.minecolonies.coremod.colony.requestsystem.resolvers.DeliveryRequestResolver in project minecolonies by Minecolonies.
the class BuildingDeliveryman method getResolvers.
@Override
public ImmutableCollection<IRequestResolver<?>> getResolvers() {
final ImmutableCollection<IRequestResolver<?>> supers = super.getResolvers();
final ImmutableList.Builder<IRequestResolver<?>> builder = ImmutableList.builder();
builder.addAll(supers);
builder.add(new DeliveryRequestResolver(getRequester().getRequesterLocation(), getColony().getRequestManager().getFactoryController().getNewInstance(TypeConstants.ITOKEN)));
return builder.build();
}
Aggregations