Class CPotionMatterImpl
-
- All Implemented Interfaces:
-
io.github.sakaki_aruka.customcrafter.matter.CMatter,io.github.sakaki_aruka.customcrafter.matter.potion.CPotionMatter
public class CPotionMatterImpl implements CPotionMatter
A default CMatter, CPotionMatter implemented class.
-
-
Field Summary
Fields Modifier and Type Field Description public final static CMatterPredicateDEFAULT_POTION_CHECKERprivate final Stringnameprivate final Set<Material>candidateprivate final Set<CPotionComponent>potionComponentsprivate final Integeramountprivate final BooleananyAmountprivate final List<CMatterPredicate>predicates
-
Constructor Summary
Constructors Constructor Description CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents, Integer amount, Boolean anyAmount, List<CMatterPredicate> predicates)CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents, Integer amount, Boolean anyAmount)CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents, Integer amount)CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents)
-
Method Summary
Modifier and Type Method Description StringgetName()Set<Material>getCandidate()Set<CPotionComponent>getPotionComponents()IntegergetAmount()BooleangetAnyAmount()List<CMatterPredicate>getPredicates()-
-
Constructor Detail
-
CPotionMatterImpl
CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents, Integer amount, Boolean anyAmount, List<CMatterPredicate> predicates)
- Parameters:
name- matter namecandidate- matter candidate materialspotionComponents- potion predicates for contained.amount- matter amountanyAmount- this matter is mass or notpredicates- if in checks, this matter requires to pass these all.
-
CPotionMatterImpl
CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents, Integer amount, Boolean anyAmount)
- Parameters:
name- matter namecandidate- matter candidate materialspotionComponents- potion predicates for contained.amount- matter amountanyAmount- this matter is mass or not
-
CPotionMatterImpl
CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents, Integer amount)
- Parameters:
name- matter namecandidate- matter candidate materialspotionComponents- potion predicates for contained.amount- matter amount
-
CPotionMatterImpl
CPotionMatterImpl(String name, Set<Material> candidate, Set<CPotionComponent> potionComponents)
- Parameters:
name- matter namecandidate- matter candidate materialspotionComponents- potion predicates for contained.
-
-
Method Detail
-
getCandidate
Set<Material> getCandidate()
-
getPotionComponents
Set<CPotionComponent> getPotionComponents()
-
getAnyAmount
Boolean getAnyAmount()
-
getPredicates
List<CMatterPredicate> getPredicates()
-
-
-
-