Enum Class EmptyItemExtractable
- All Implemented Interfaces:
- ItemExtractable,- NullVariant,- Serializable,- Comparable<EmptyItemExtractable>,- Constable
public enum EmptyItemExtractable
extends Enum<EmptyItemExtractable>
implements ItemExtractable, NullVariant
An 
ItemExtractable that never returns any items from
 attemptExtraction(ItemFilter, int, Simulation).- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAnItemExtractablethat should be treated as equal to null in all circumstances - that is any checks that depend on an object being extractable should be considered FALSE for this instance.AnItemExtractablethat informs callers that it will push items into a nearbyItemInsertable, but doesn't expose any other item based attributes.
- 
Method SummaryModifier and TypeMethodDescriptionnet.minecraft.item.ItemStackattemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)toString()static EmptyItemExtractableReturns the enum constant of this class with the specified name.static EmptyItemExtractable[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enumclone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface alexiil.mc.lib.attributes.item.ItemExtractableattemptAnyExtraction, couldExtractAnything, extract, extract, extract, filtered
- 
Enum Constant Details- 
NULLAnItemExtractablethat should be treated as equal to null in all circumstances - that is any checks that depend on an object being extractable should be considered FALSE for this instance.
- 
SUPPLIERAnItemExtractablethat informs callers that it will push items into a nearbyItemInsertable, but doesn't expose any other item based attributes.The buildcraft quarry is a good example of this - it doesn't have any inventory slots itself and it pushes items out of it as it mines them from the world, but item pipes should still connect to it so that it can insert into them. 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
attemptExtractionpublic net.minecraft.item.ItemStack attemptExtraction(ItemFilter filter, int maxCount, Simulation simulation)Description copied from interface:ItemExtractable- Specified by:
- attemptExtractionin interface- ItemExtractable
- maxCount- The maximum number of items that can be extracted. Negative numbers throw an exception.
- simulation- If- Simulation.SIMULATEthen this should return the same result that a call with- Simulation.ACTIONwould do, but without modifying anything else.
- Returns:
- A new, independent ItemStackthat was extracted.
 
- 
getPureExtractable- Specified by:
- getPureExtractablein interface- ItemExtractable
- Returns:
- An object that only implements ItemExtractable, and does not expose any of the other modification methods that sibling or subclasses offer (likeItemInsertableorGroupedItemInv.
 
- 
toString- Overrides:
- toStringin class- Enum<EmptyItemExtractable>
 
 
-