public class PlantDrop
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PlantDrop.DropKind |
| Constructor and Description |
|---|
PlantDrop(net.minecraft.item.ItemStack drop,
float chance)
Use this for registering seeds that have a chance less then one to drop
|
PlantDrop(net.minecraft.item.ItemStack drop,
int itemWeight)
DON'T USE!
This constructor is meant for registering grass
Which get auto collected by NER
|
PlantDrop(net.minecraft.item.ItemStack drop,
int minDrop,
int maxDrop)
Use this for registering seeds that have a chance of dropping more then one time
|
| Modifier and Type | Method and Description |
|---|---|
float |
getChance() |
net.minecraft.item.ItemStack |
getDrop() |
PlantDrop.DropKind |
getDropKind() |
int |
getMaxDrop() |
int |
getMinDrop() |
int |
getWeight() |
public PlantDrop(net.minecraft.item.ItemStack drop,
int itemWeight)
drop - the The drop an ItemStackitemWeight - The Weight of the droppublic PlantDrop(net.minecraft.item.ItemStack drop,
float chance)
drop - The drop an ItemStackchance - the chance as floatpublic PlantDrop(net.minecraft.item.ItemStack drop,
int minDrop,
int maxDrop)
drop - The drop an ItemStackminDrop - minimum of seeds droppedmaxDrop - maximum of seeds droppedpublic net.minecraft.item.ItemStack getDrop()
public int getWeight()
public int getMinDrop()
public int getMaxDrop()
public float getChance()
public PlantDrop.DropKind getDropKind()