public class TileLeaves extends TileTreeContainer implements IPollinatable, IFruitBearer, IButterflyNursery, IRipeningPacketReceiver
| Constructor and Description |
|---|
TileLeaves() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRipeness(float add)
Increases the ripeness of the fruit.
|
boolean |
canMateWith(IIndividual individual)
Checks whether this can mate with the given pollen.
|
boolean |
canNurse(IButterfly caterpillar) |
void |
fromRipeningPacket(int newColourFruits) |
net.minecraft.world.biome.Biome |
getBiome() |
IButterfly |
getCaterpillar() |
net.minecraft.util.math.BlockPos |
getCoordinates()
The coordinates of the housing.
|
int |
getFoliageColour(net.minecraft.entity.player.EntityPlayer player) |
int |
getFruitColour() |
IFruitFamily |
getFruitFamily() |
net.minecraft.util.ResourceLocation |
getFruitSprite() |
EnumHumidity |
getHumidity() |
net.minecraft.util.ResourceLocation |
getLeaveSprite(boolean fancy) |
IIndividual |
getNanny() |
net.minecraftforge.common.EnumPlantType |
getPlantType() |
ITree |
getPollen() |
float |
getRipeness() |
int |
getRipeningTime() |
java.lang.String |
getSpeciesUID() |
EnumTemperature |
getTemperature() |
java.lang.String |
getUnlocalizedName() |
net.minecraft.world.World |
getWorldObj() |
boolean |
hasFruit() |
boolean |
isPollinated() |
void |
mateWith(IIndividual individual)
Pollinates this entity.
|
void |
onBlockTick(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
Leaves and saplings will implement their logic here.
|
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
pickFruit(net.minecraft.item.ItemStack tool)
Picks the fruits of this tile, resetting it to unripe fruits.
|
void |
readData(PacketBufferForestry data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
void |
setCaterpillar(IButterfly caterpillar) |
void |
setTree(ITree tree) |
void |
writeData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbtTagCompound) |
getOwnerHandler, getTree, getUpdatePacket, getUpdateTag, handleUpdateTag, onDataPacket, shouldRefreshaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getCapability, getDisplayName, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasCapability, hasFastRenderer, hasWorld, invalidate, isInvalid, markDirty, mirror, onChunkUnload, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setPos, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfo, validatepublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
readFromNBT in class TileTreeContainerpublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbtTagCompound)
writeToNBT in class TileTreeContainerpublic void onBlockTick(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
TileTreeContaineronBlockTick in class TileTreeContainerpublic void setTree(ITree tree)
setTree in class TileTreeContainerpublic boolean isPollinated()
isPollinated in interface ICheckPollinatablepublic int getFoliageColour(net.minecraft.entity.player.EntityPlayer player)
public int getFruitColour()
public net.minecraft.util.ResourceLocation getLeaveSprite(boolean fancy)
@Nullable public net.minecraft.util.ResourceLocation getFruitSprite()
public int getRipeningTime()
public net.minecraftforge.common.EnumPlantType getPlantType()
getPlantType in interface ICheckPollinatablepublic boolean canMateWith(IIndividual individual)
ICheckPollinatableMust be the one to check genetic equivalency.
canMateWith in interface ICheckPollinatableindividual - IIndividual representing the pollen.public void mateWith(IIndividual individual)
IPollinatablemateWith in interface IPollinatableindividual - IIndividual representing the pollen.public ITree getPollen()
getPollen in interface ICheckPollinatablepublic java.lang.String getUnlocalizedName()
public void writeData(PacketBufferForestry data)
writeData in interface IStreamablewriteData in class TileTreeContainerpublic void readData(PacketBufferForestry data)
readData in interface IStreamablereadData in class TileTreeContainerpublic void fromRipeningPacket(int newColourFruits)
fromRipeningPacket in interface IRipeningPacketReceiverpublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> pickFruit(net.minecraft.item.ItemStack tool)
IFruitBearerpickFruit in interface IFruitBearertool - Tool used in picking the fruits. May be empty.public IFruitFamily getFruitFamily()
getFruitFamily in interface IFruitBearerpublic float getRipeness()
getRipeness in interface IFruitBearerpublic boolean hasFruit()
hasFruit in interface IFruitBearerpublic void addRipeness(float add)
IFruitBeareraddRipeness in interface IFruitBeareradd - Float to add to the ripeness. Will truncate to valid values.@Nullable public java.lang.String getSpeciesUID()
public net.minecraft.util.math.BlockPos getCoordinates()
IHousinggetCoordinates in interface IHousing@Nullable public IButterfly getCaterpillar()
getCaterpillar in interface IButterflyNurserypublic IIndividual getNanny()
getNanny in interface IButterflyNurserypublic void setCaterpillar(@Nullable
IButterfly caterpillar)
setCaterpillar in interface IButterflyNurserypublic boolean canNurse(IButterfly caterpillar)
canNurse in interface IButterflyNurserypublic net.minecraft.world.biome.Biome getBiome()
getBiome in interface IClimateProviderpublic EnumTemperature getTemperature()
getTemperature in interface IClimateProviderpublic EnumHumidity getHumidity()
getHumidity in interface IClimateProviderpublic net.minecraft.world.World getWorldObj()
getWorldObj in interface IButterflyNursery