public class HarvestingProperty extends AbstractProperty<String,Set<BlockType>>
Harvestable blocks vary, but if an item can not harvest based on this property, the mined block will not be harvested (dropped as an item). This behavior may be changed by events.
Property.Operatoroperator, value| Constructor and Description |
|---|
HarvestingProperty(Set<BlockType> value)
Creates a
HarvestingProperty with a specific set of BlockTypes. |
HarvestingProperty(Set<BlockType> value,
Property.Operator op)
Creates a
HarvestingProperty with a specific set of BlockTypes. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Property<?,?> o) |
equals, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches, toStringpublic HarvestingProperty(@Nullable Set<BlockType> value)
HarvestingProperty with a specific set of BlockTypes.value - The harvestable block typespublic HarvestingProperty(@Nullable Set<BlockType> value, Property.Operator op)
HarvestingProperty with a specific set of BlockTypes.value - The harvestable block typesop - The operator to use when comparing against other propertiespublic int compareTo(Property<?,?> o)