public class HeldItemProperty extends AbstractProperty<String,ItemType>
ItemType
representation of what a
BlockState
or BlockType
may present itself if it was
represented as an ItemStack
.Property.Operator
operator, value
Constructor and Description |
---|
HeldItemProperty(ItemType value)
Creates a new
HeldItemProperty with the provided ItemType . |
HeldItemProperty(ItemType value,
Property.Operator op)
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Property<?,?> o) |
equals, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches, toString
public HeldItemProperty(ItemType value)
HeldItemProperty
with the provided ItemType
.value
- The item type value for the blockpublic HeldItemProperty(ItemType value, Property.Operator op)
value
- The item valueop
- The operator for comparisonspublic int compareTo(Property<?,?> o)