Class PrototypedIngredient<T,M>
java.lang.Object
org.cyclops.commoncapabilities.api.ingredient.PrototypedIngredient<T,M>
- Type Parameters:
T
- The instance type.M
- The matching condition parameter, may be Void.
- All Implemented Interfaces:
Comparable<IPrototypedIngredient<?,
,?>> IPrototypedIngredient<T,
M>
A raw prototyped ingredient.
-
Constructor Summary
ConstructorDescriptionPrototypedIngredient
(IngredientComponent<T, M> ingredientComponent, T prototype, M condition) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(IPrototypedIngredient<?, ?> that) boolean
int
hashCode()
toString()
-
Constructor Details
-
PrototypedIngredient
-
-
Method Details
-
getComponent
- Specified by:
getComponent
in interfaceIPrototypedIngredient<T,
M> - Returns:
- The type of ingredient component this prototype exists for.
-
getPrototype
- Specified by:
getPrototype
in interfaceIPrototypedIngredient<T,
M> - Returns:
- The prototype of this ingredient.
-
getCondition
- Specified by:
getCondition
in interfaceIPrototypedIngredient<T,
M> - Returns:
- The condition under which the prototype instance can be matched.
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-