DeathDropItem
Represents a single item that drops at a citizen's location when they die.
package com.electro.hycitizens.models;
Constructors
DeathDropItem()
DeathDropItem(@Nonnull String itemId, int quantity)
DeathDropItem(@Nonnull String itemId, int quantity, float chancePercent)
getItemId / setItemId
@Nonnull String getItemId()
void setItemId(@Nonnull String itemId)
The item identifier string. Must match a valid Hytale item ID. Default: "".
getQuantity / setQuantity
int getQuantity()
void setQuantity(int quantity)
How many of this item to drop. Default: 1.
getChancePercent / setChancePercent
float getChancePercent()
void setChancePercent(float chancePercent)
The probability (0.0–100.0) that this item drops at all when the citizen dies. 100.0 means always drop; 0.0 means never. Default: 100.0.