public class CustomTypeError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends GameObjectValidationError<G,A,R>
Constructor and Description |
---|
CustomTypeError(G gameObject,
int archetypeType,
int gameObjectType)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getParameter(int id)
Returns a parameter string to be used in the error message.
|
addGameObject, addMapSquare, getGameObjects, getMapModel, getMapSquares, getMessage, toString
public CustomTypeError(@NotNull G gameObject, int archetypeType, int gameObjectType)
gameObject
- The GameObject on which the error occurred.archetypeType
- The archetype's type number.gameObjectType
- The game object's type number.@Nullable public java.lang.String getParameter(int id)
id
}.getParameter
in class ValidationError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
id
- the error id