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) |
crafttweaker.api.block.IBlock |
getBlock() |
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, getWorldpublic MCBlockHarvestDropsEvent(net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent event)
public float getDropChance()
getDropChance in interface crafttweaker.api.event.BlockHarvestDropsEventpublic void setDropChance(float dropChance)
setDropChance in interface crafttweaker.api.event.BlockHarvestDropsEventpublic int getFortuneLevel()
getFortuneLevel in interface crafttweaker.api.event.BlockHarvestDropsEventpublic crafttweaker.api.block.IBlock getBlock()
getBlock in interface crafttweaker.api.event.IBlockEventpublic java.util.List<crafttweaker.api.item.WeightedItemStack> getDrops()
getDrops in interface crafttweaker.api.event.BlockHarvestDropsEventpublic void setDrops(java.util.List<crafttweaker.api.item.WeightedItemStack> drops)
setDrops in interface crafttweaker.api.event.BlockHarvestDropsEventpublic void addItem(crafttweaker.api.item.WeightedItemStack itemStack)
addItem in interface crafttweaker.api.event.BlockHarvestDropsEventpublic boolean isSilkTouch()
isSilkTouch in interface crafttweaker.api.event.BlockHarvestDropsEventpublic boolean isPlayer()
isPlayer in interface crafttweaker.api.event.BlockHarvestDropsEventpublic crafttweaker.api.player.IPlayer getPlayer()
getPlayer in interface crafttweaker.api.event.BlockHarvestDropsEvent