use of com.minecolonies.coremod.colony.requestsystem.resolvers.WarehouseRequestResolver in project minecolonies by Minecolonies.
the class BuildingWareHouse 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 WarehouseRequestResolver(getRequester().getRequesterLocation(), getColony().getRequestManager().getFactoryController().getNewInstance(TypeConstants.ITOKEN)));
return builder.build();
}
use of com.minecolonies.coremod.colony.requestsystem.resolvers.WarehouseRequestResolver in project minecolonies by Minecolonies.
the class WarehouseRequestResolverFactory method deserialize.
@NotNull
@Override
public WarehouseRequestResolver 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 WarehouseRequestResolver(location, token);
}
Aggregations