Search in sources :

Example 1 with BuildingRequestResolver

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

the class BuildingRequestResolverFactory method deserialize.

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

Aggregations

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