Class RandomSeededTokenFactory
java.lang.Object
com.minecolonies.api.colony.requestsystem.token.AbstractTokenFactory<Integer>
com.minecolonies.api.colony.requestsystem.token.RandomSeededTokenFactory
- All Implemented Interfaces:
IFactory<Integer,,StandardToken> ITokenFactory<Integer,StandardToken>
-
Field Summary
Fields inherited from class com.minecolonies.api.colony.requestsystem.token.AbstractTokenFactory
NBT_LSB, NBT_MSB -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull com.google.common.reflect.TypeToken<? extends Integer>Used to determine which type this can produce.@NotNull StandardTokengetNewInstance(@NotNull Integer input) Method to get a new instance of a token given the input and token.shortGet a serialization id for the factory.Methods inherited from class com.minecolonies.api.colony.requestsystem.token.AbstractTokenFactory
deserialize, deserialize, getFactoryOutputType, serialize, serializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.requestsystem.token.ITokenFactory
getNewInstance
-
Constructor Details
-
RandomSeededTokenFactory
public RandomSeededTokenFactory()
-
-
Method Details
-
getNewInstance
Description copied from interface:ITokenFactoryMethod 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.
-
getFactoryInputType
@NotNull public @NotNull com.google.common.reflect.TypeToken<? extends Integer> getFactoryInputType()Description copied from interface:IFactoryUsed to determine which type this can produce.- Returns:
- The class that represents the Type of Request this can produce.
-
getSerializationId
public short getSerializationId()Description copied from interface:IFactoryGet a serialization id for the factory.- Returns:
- the short id.
-