1package com.runehive.game.world.entity.mob.npc.drop;
3import com.google.gson.annotations.SerializedName;
4import com.runehive.game.world.items.Item;
5import com.runehive.util.RandomGen;
7public final class NpcDrop implements Comparable<NpcDrop> {
9 @SerializedName(value=
"id", alternate={
"item"})
51 return type.ordinal() - other.
type.ordinal();
int compareTo(NpcDrop other)
final int maximum
The maximum amount of this drop.
NpcDropChance type
The chance this item is dropped.
int id
The item id of this drop.
void setType(NpcDropChance type)
NpcDrop(int id, NpcDropChance type, int chance, int minimum, int maximum)
Constructs a new NpcDrop.
final int chance
The alternate chance modifier to use over the chance rarity.
final int minimum
The minimum amount of this drop.
Item toItem(RandomGen gen)
Converts this NpcDrop to an item.
The container class that represents an item that can be interacted with.
The ThreadLocalRandom wrapper that provides additional functionality for generating pseudo-random num...
int inclusive(int min, int max)
Returns a pseudo-random int value between inclusive min and inclusive max.
The enumerated type whose elements represent a set of constants used to differ between NpcDrop rariti...