Search in sources :

Example 1 with PrivateWorkerCraftingRequestResolver

use of com.minecolonies.coremod.colony.requestsystem.resolvers.PrivateWorkerCraftingRequestResolver in project minecolonies by Minecolonies.

the class PrivateWorkerCraftingRequestResolverFactory method deserialize.

@NotNull
@Override
public PrivateWorkerCraftingRequestResolver 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 PrivateWorkerCraftingRequestResolver(location, token);
}
Also used : ILocation(com.minecolonies.api.colony.requestsystem.location.ILocation) PrivateWorkerCraftingRequestResolver(com.minecolonies.coremod.colony.requestsystem.resolvers.PrivateWorkerCraftingRequestResolver) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ILocation (com.minecolonies.api.colony.requestsystem.location.ILocation)1 PrivateWorkerCraftingRequestResolver (com.minecolonies.coremod.colony.requestsystem.resolvers.PrivateWorkerCraftingRequestResolver)1 NotNull (org.jetbrains.annotations.NotNull)1