public class LootBag extends Object
Constructor and Description |
---|
LootBag(DropMetadata meta) |
Modifier and Type | Method and Description |
---|---|
LootBag |
add(Drop type)
Deprecated.
|
LootBag |
add(DropMetadata data,
Drop type) |
LootBag |
add(DropMetadata data,
LootBag other) |
void |
drop(AbstractLocation target) |
void |
dropOrGive(AbstractLocation location,
AbstractPlayer target) |
void |
equip(AbstractEntity entity) |
Collection<Drop> |
getDrops() |
void |
give(AbstractPlayer player) |
void |
give(AbstractPlayer player,
boolean sendMessages) |
int |
size() |
public LootBag(DropMetadata meta)
public Collection<Drop> getDrops()
@Deprecated public LootBag add(Drop type)
public LootBag add(DropMetadata data, Drop type)
public LootBag add(DropMetadata data, LootBag other)
public void drop(AbstractLocation target)
public void dropOrGive(AbstractLocation location, AbstractPlayer target)
public void give(AbstractPlayer player)
public void give(AbstractPlayer player, boolean sendMessages)
public void equip(AbstractEntity entity)
public int size()
Copyright © 2020. All rights reserved.