Package de.eimmer.inventar
Class RezeptWahlmoeglichkeit.ExactChoice
java.lang.Object
de.eimmer.inventar.RezeptWahlmoeglichkeit.ExactChoice
- All Implemented Interfaces:
RezeptWahlmoeglichkeit
,Cloneable
,Predicate<GegenstandsStapel>
- Enclosing interface:
RezeptWahlmoeglichkeit
public static class RezeptWahlmoeglichkeit.ExactChoice
extends Object
implements RezeptWahlmoeglichkeit
Represents a choice that will be valid only one of the stacks is exactly
matched (aside from stack size).
Only valid for shaped recipes
Only valid for shaped recipes
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.eimmer.inventar.RezeptWahlmoeglichkeit
RezeptWahlmoeglichkeit.ExactChoice, RezeptWahlmoeglichkeit.MaterialChoice
-
Constructor Summary
ConstructorsConstructorDescriptionExactChoice
(GegenstandsStapel stack) ExactChoice
(GegenstandsStapel... stacks) ExactChoice
(List<GegenstandsStapel> choices) -
Method Summary
-
Constructor Details
-
ExactChoice
-
ExactChoice
-
ExactChoice
-
-
Method Details
-
getItemStack
Description copied from interface:RezeptWahlmoeglichkeit
Gets a single item stack representative of this stack choice.- Specified by:
getItemStack
in interfaceRezeptWahlmoeglichkeit
- Returns:
- a single representative item
-
getChoices
-
clone
- Specified by:
clone
in interfaceRezeptWahlmoeglichkeit
- Overrides:
clone
in classObject
-
test
- Specified by:
test
in interfacePredicate<GegenstandsStapel>
- Specified by:
test
in interfaceRezeptWahlmoeglichkeit
-
hashCode
public int hashCode() -
equals
-
toString
-