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.Operator
operator, value
Constructor and Description |
---|
HarvestingProperty(Set<BlockType> value)
Creates a
HarvestingProperty with a specific set of BlockType s. |
HarvestingProperty(Set<BlockType> value,
Property.Operator op)
Creates a
HarvestingProperty with a specific set of BlockType s. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Property<?,?> o) |
equals, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches, toString
public HarvestingProperty(@Nullable Set<BlockType> value)
HarvestingProperty
with a specific set of BlockType
s.value
- The harvestable block typespublic HarvestingProperty(@Nullable Set<BlockType> value, Property.Operator op)
HarvestingProperty
with a specific set of BlockType
s.value
- The harvestable block typesop
- The operator to use when comparing against other propertiespublic int compareTo(Property<?,?> o)