public class FruitProviderRipening extends FruitProviderNone
ripeningPeriod| Constructor and Description |
|---|
FruitProviderRipening(java.lang.String unlocalizedDescription,
IFruitFamily family,
net.minecraft.item.ItemStack product,
float modifier) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColour(ITreeGenome genome,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
int ripeningTime)
Returns the color of the fruit spite based on the ripening time of the fruit.
|
int |
getDecorativeColor()
return the color to use for decorative leaves.
|
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getFruits(ITreeGenome genome,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int ripeningTime)
Returns all drops of this block if you harvest it.
|
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> |
getProducts()
A unmodifiable map that contains all products and their associated drop chances.
|
boolean |
isFruitLeaf(ITreeGenome genome,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Determines if fruit block of this provider is considered a leaf block.
|
FruitProviderRipening |
setColours(java.awt.Color ripe,
java.awt.Color callow) |
FruitProviderRipening |
setRipeningPeriod(int period) |
getDecorativeSprite, getDescription, getFamily, getModelName, getModID, getRipeningPeriod, getSpecialty, getSprite, registerSprites, requiresFruitBlocks, setOverlay, trySpawnFruitBlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFruitChancepublic FruitProviderRipening(java.lang.String unlocalizedDescription,
IFruitFamily family,
net.minecraft.item.ItemStack product,
float modifier)
public FruitProviderRipening setColours(java.awt.Color ripe, java.awt.Color callow)
public FruitProviderRipening setRipeningPeriod(int period)
public net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getFruits(ITreeGenome genome, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, int ripeningTime)
IFruitProvidergetFruits in interface IFruitProvidergetFruits in class FruitProviderNonegenome - The genome of the tree of the leaves / pod.ripeningTime - The repining time of the block. From 0 to IFruitProvider.getRipeningPeriod().public java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> getProducts()
IFruitProvidergetProducts in interface IFruitProvidergetProducts in class FruitProviderNonepublic boolean isFruitLeaf(ITreeGenome genome, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
IFruitProviderisFruitLeaf in interface IFruitProviderisFruitLeaf in class FruitProviderNonegenome - The genome of the tree of the pod / leaves block.world - The world in that the pod / leaves block is located.pos - The position of the pod / leaves block.public int getColour(ITreeGenome genome, net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, int ripeningTime)
IFruitProvidergetColour in interface IFruitProvidergetColour in class FruitProviderNonegenome - The genome of the tree of the pod / leaves block.ripeningTime - The ripening time of the leaves / pod block. From 0 to IFruitProvider.getRipeningPeriod().public int getDecorativeColor()
IFruitProvidergetDecorativeColor in interface IFruitProvidergetDecorativeColor in class FruitProviderNone