Class StandardTokenFactory

java.lang.Object
com.minecolonies.api.colony.requestsystem.token.AbstractTokenFactory<UUID>
com.minecolonies.api.colony.requestsystem.token.StandardTokenFactory
All Implemented Interfaces:
IFactory<UUID,StandardToken>, ITokenFactory<UUID,StandardToken>

public class StandardTokenFactory extends AbstractTokenFactory<UUID>
Factory for the standard request token, StandardToken
  • Constructor Details

    • StandardTokenFactory

      public StandardTokenFactory()
  • Method Details

    • getFactoryInputType

      @NotNull public @NotNull com.google.common.reflect.TypeToken<UUID> getFactoryInputType()
      Description copied from interface: IFactory
      Used to determine which type this can produce.
      Returns:
      The class that represents the Type of Request this can produce.
    • getNewInstance

      @NotNull public @NotNull StandardToken getNewInstance(@NotNull @NotNull UUID input)
      Method to get a new instance of a token given the input and token.
      Parameters:
      input - The input to build a new token for.
      Returns:
      The new output instance for a given input.
    • getSerializationId

      public short getSerializationId()
      Description copied from interface: IFactory
      Get a serialization id for the factory.
      Returns:
      the short id.