setItemInHandDropChance

public abstract void setItemInHandDropChance(float chance)

Sets the chance of the item this creature is currently holding being dropped upon this creature's death.

  • A drop chance of 0F will never drop
  • A drop chance of 1F will always drop

Parameters

chance

the chance of the currently held item being dropped

Throws

when called on players