SoloInventoryCondition

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

public BlockTagOrItemIdField 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 ComponentAccessor componentAccessor
@Nonnull final Ref ref
final Set objectivePlayers

consumeCondition

public void consumeCondition (@Nonnull final ComponentAccessor componentAccessor, @Nonnull final Ref ref, final Set objectivePlayers)

Method consumeCondition.

Parameters:
@Nonnull final ComponentAccessor componentAccessor
@Nonnull final Ref ref
final Set objectivePlayers

equals

public boolean equals (@Nullable final Object o)

Method equals.

Parameters:
@Nullable final Object o

hashCode

public int hashCode ()

Method hashCode.

toString

public String toString ()

Method toString.