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
ConstructorsConstructorDescriptionPrototypedIngredient(IngredientComponent<T, M> ingredientComponent, T prototype, M condition) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(IPrototypedIngredient<?, ?> that) booleaninthashCode()toString()
-
Constructor Details
-
PrototypedIngredient
-
-
Method Details
-
getComponent
- Specified by:
getComponentin interfaceIPrototypedIngredient<T,M> - Returns:
- The type of ingredient component this prototype exists for.
-
getPrototype
- Specified by:
getPrototypein interfaceIPrototypedIngredient<T,M> - Returns:
- The prototype of this ingredient.
-
getCondition
- Specified by:
getConditionin interfaceIPrototypedIngredient<T,M> - Returns:
- The condition under which the prototype instance can be matched.
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-