public class SoloInventoryCondition extends TaskConditionAsset
Class SoloInventoryCondition. Provides soloinventorycondition functionality for the Hytale server.
java.lang.Object > TaskConditionAsset > SoloInventoryCondition
Field Summary
blockTypeOrTagTask
protected
BlockTagOrItemIdField
blockTypeOrTagTask
Field blockTypeOrTagTask.
quantity
protected
int
quantity
Field quantity.
consumeOnCompletion
protected
boolean
consumeOnCompletion
Field consumeOnCompletion.
holdInHand
protected
boolean
holdInHand
Field holdInHand.
playerComponent
final
Player
playerComponent
Field playerComponent.
inventory
final
Inventory
inventory
Field inventory.
itemInHand
final
ItemStack
itemInHand
Field itemInHand.
that
final
SoloInventoryCondition
that
Field that.
Method Detail
SoloInventoryCondition
public
public
SoloInventoryCondition
()
Method SoloInventoryCondition.
getBlockTypeOrTagTask
Method getBlockTypeOrTagTask.
getQuantity
public
int
getQuantity
()
Method getQuantity.
isConsumeOnCompletion
public
boolean
isConsumeOnCompletion
()
Method isConsumeOnCompletion.
isHoldInHand
public
boolean
isHoldInHand
()
Method isHoldInHand.
isConditionFulfilled
public
boolean
isConditionFulfilled
(@Nonnull final ComponentAccessor componentAccessor, @Nonnull final Ref ref, final Set objectivePlayers)
Method isConditionFulfilled.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final Refreffinal SetobjectivePlayers
consumeCondition
public
void
consumeCondition
(@Nonnull final ComponentAccessor componentAccessor, @Nonnull final Ref ref, final Set objectivePlayers)
Method consumeCondition.
- Parameters:
@Nonnull final ComponentAccessorcomponentAccessor@Nonnull final Refreffinal SetobjectivePlayers
equals
public
boolean
equals
(@Nullable final Object o)
Method equals.
- Parameters:
@Nullable final Objecto
hashCode
public
int
hashCode
()
Method hashCode.
toString
public
String
toString
()
Method toString.