public class PlantEntry
extends java.lang.Object
| Constructor and Description |
|---|
PlantEntry(net.minecraft.item.ItemStack itemStack,
net.minecraftforge.common.IPlantable plant,
PlantDrop... drops) |
PlantEntry(net.minecraft.item.ItemStack itemStack,
PlantDrop... drops) |
PlantEntry(T plant,
PlantDrop... drops) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(PlantDrop entry) |
net.minecraft.state.Property<?> |
getAgeProperty() |
PlantDrop |
getDrop(net.minecraft.item.ItemStack itemStack) |
java.util.List<PlantDrop> |
getDrops() |
java.util.List<net.minecraft.item.ItemStack> |
getLootDropStacks() |
net.minecraftforge.common.IPlantable |
getPlant() |
net.minecraft.item.ItemStack |
getPlantItemStack() |
net.minecraft.block.BlockState |
getPlantState() |
net.minecraft.block.BlockState |
getSoil() |
int |
getTotalWeight() |
static PlantEntry |
registerGrass() |
void |
setAgeProperty(net.minecraft.state.Property<?> ageProperty) |
void |
setPlantState(net.minecraft.block.BlockState plantState) |
void |
setSoil(net.minecraft.block.BlockState soil) |
public PlantEntry(net.minecraft.item.ItemStack itemStack,
net.minecraftforge.common.IPlantable plant,
PlantDrop... drops)
public PlantEntry(net.minecraft.item.ItemStack itemStack,
PlantDrop... drops)
public PlantEntry(T plant,
PlantDrop... drops)
public static PlantEntry registerGrass()
public net.minecraft.block.BlockState getSoil()
public net.minecraft.block.BlockState getPlantState()
public net.minecraft.state.Property<?> getAgeProperty()
public void setSoil(net.minecraft.block.BlockState soil)
public void setPlantState(net.minecraft.block.BlockState plantState)
public void setAgeProperty(net.minecraft.state.Property<?> ageProperty)
public void add(PlantDrop entry)
public net.minecraftforge.common.IPlantable getPlant()
public net.minecraft.item.ItemStack getPlantItemStack()
public java.util.List<PlantDrop> getDrops()
public java.util.List<net.minecraft.item.ItemStack> getLootDropStacks()
public PlantDrop getDrop(net.minecraft.item.ItemStack itemStack)
public int getTotalWeight()