public class Tree extends Individual implements ITree, net.minecraftforge.common.IPlantable
isAnalyzed| Constructor and Description |
|---|
Tree(ITreeGenome genome) |
Tree(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTooltip(java.util.List<java.lang.String> list)
Adds some information about the individual to the list.
|
boolean |
allowsFruitBlocks() |
boolean |
canBearFruit() |
net.minecraft.util.math.BlockPos |
canGrow(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int expectedGirth,
int expectedHeight) |
boolean |
canStay(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
ITree |
copy() |
IEffectData[] |
doEffect(IEffectData[] storedData,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
IEffectData[] |
doFX(IEffectData[] storedData,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
ITreeGenome |
getGenome() |
int |
getGirth() |
float |
getHeightModifier() |
ITreeGenome |
getMate() |
net.minecraft.block.state.IBlockState |
getPlant(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
net.minecraftforge.common.EnumPlantType |
getPlantType(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> |
getProducts() |
int |
getRequiredMaturity() |
int |
getResilience() |
java.util.List<ITree> |
getSaplings(net.minecraft.world.World world,
com.mojang.authlib.GameProfile playerProfile,
net.minecraft.util.math.BlockPos pos,
float modifier) |
java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> |
getSpecialties() |
net.minecraft.world.gen.feature.WorldGenerator |
getTreeGenerator(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean wasBonemealed) |
boolean |
isPureBred(EnumTreeChromosome chromosome) |
void |
mate(ITree other) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
produceStacks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int ripeningTime) |
boolean |
setLeaves(net.minecraft.world.World world,
com.mojang.authlib.GameProfile owner,
net.minecraft.util.math.BlockPos pos) |
boolean |
setLeaves(net.minecraft.world.World world,
com.mojang.authlib.GameProfile owner,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand) |
boolean |
setLogBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing) |
boolean |
trySpawnFruitBlock(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound) |
analyze, getDisplayName, getIdent, hasEffect, isAnalyzed, isGeneticEqual, isPureBred, isSecretclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanalyze, getDisplayName, getIdent, hasEffect, isAnalyzed, isGeneticEqual, isPureBred, isSecretpublic Tree(ITreeGenome genome)
public Tree(net.minecraft.nbt.NBTTagCompound nbttagcompound)
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbttagcompound)
writeToNBT in interface INbtWritablewriteToNBT in class Individualpublic IEffectData[] doEffect(IEffectData[] storedData, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
public IEffectData[] doFX(IEffectData[] storedData, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
public net.minecraft.world.gen.feature.WorldGenerator getTreeGenerator(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean wasBonemealed)
getTreeGenerator in interface ITreepublic boolean canStay(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
public net.minecraftforge.common.EnumPlantType getPlantType(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
getPlantType in interface net.minecraftforge.common.IPlantablepublic net.minecraft.block.state.IBlockState getPlant(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
getPlant in interface net.minecraftforge.common.IPlantable@Nullable
public net.minecraft.util.math.BlockPos canGrow(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int expectedGirth,
int expectedHeight)
canGrow in interface ITreecanGrow in interface ITreeGenDatapublic int getRequiredMaturity()
getRequiredMaturity in interface ITreepublic int getGirth()
getGirth in interface ITreegetGirth in interface ITreeGenDatapublic int getResilience()
getResilience in interface ITreepublic float getHeightModifier()
getHeightModifier in interface ITreeGenDatapublic boolean setLeaves(net.minecraft.world.World world,
@Nullable
com.mojang.authlib.GameProfile owner,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand)
setLeaves in interface ITreeGenDatapublic boolean setLeaves(net.minecraft.world.World world,
@Nullable
com.mojang.authlib.GameProfile owner,
net.minecraft.util.math.BlockPos pos)
setLeaves in interface ITreeGenDatapublic boolean setLogBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing)
setLogBlock in interface ITreeGenDatapublic boolean allowsFruitBlocks()
allowsFruitBlocks in interface ITreeGenDatapublic boolean trySpawnFruitBlock(net.minecraft.world.World world,
java.util.Random rand,
net.minecraft.util.math.BlockPos pos)
trySpawnFruitBlock in interface ITreeGenDatapublic ITreeGenome getGenome()
getGenome in interface ITreegetGenome in interface IIndividualgetGenome in interface ITreeGenDatapublic ITree copy()
copy in interface ITreecopy in interface IIndividual@Nullable public ITreeGenome getMate()
public boolean isPureBred(EnumTreeChromosome chromosome)
isPureBred in interface ITreepublic void addTooltip(java.util.List<java.lang.String> list)
IIndividualaddTooltip in interface IIndividualpublic java.util.List<ITree> getSaplings(net.minecraft.world.World world, @Nullable com.mojang.authlib.GameProfile playerProfile, net.minecraft.util.math.BlockPos pos, float modifier)
getSaplings in interface ITreepublic boolean canBearFruit()
canBearFruit in interface ITreepublic java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> getProducts()
getProducts in interface ITreepublic java.util.Map<net.minecraft.item.ItemStack,java.lang.Float> getSpecialties()
getSpecialties in interface ITreepublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> produceStacks(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int ripeningTime)
produceStacks in interface ITree