public class MCBlockHarvestDropsEvent extends MCBlockEvent implements crafttweaker.api.event.BlockHarvestDropsEvent
Constructor and Description |
---|
MCBlockHarvestDropsEvent(net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(crafttweaker.api.item.WeightedItemStack itemStack) |
float |
getDropChance() |
java.util.List<crafttweaker.api.item.WeightedItemStack> |
getDrops() |
int |
getFortuneLevel() |
crafttweaker.api.player.IPlayer |
getPlayer() |
boolean |
isPlayer() |
boolean |
isSilkTouch() |
void |
setDropChance(float dropChance) |
void |
setDrops(java.util.List<crafttweaker.api.item.WeightedItemStack> drops) |
getBlockState, getPosition, getWorld
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public MCBlockHarvestDropsEvent(net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent event)
public float getDropChance()
getDropChance
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public void setDropChance(float dropChance)
setDropChance
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public int getFortuneLevel()
getFortuneLevel
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public java.util.List<crafttweaker.api.item.WeightedItemStack> getDrops()
getDrops
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public void setDrops(java.util.List<crafttweaker.api.item.WeightedItemStack> drops)
setDrops
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public void addItem(crafttweaker.api.item.WeightedItemStack itemStack)
addItem
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public boolean isSilkTouch()
isSilkTouch
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public boolean isPlayer()
isPlayer
in interface crafttweaker.api.event.BlockHarvestDropsEvent
public crafttweaker.api.player.IPlayer getPlayer()
getPlayer
in interface crafttweaker.api.event.BlockHarvestDropsEvent