Bunch of item work, 96
This commit is contained in:
parent
91994e5a01
commit
fd0fa8c66e
27 changed files with 123 additions and 191 deletions
|
@ -26,12 +26,15 @@ package techreborn.world;
|
|||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.block.trees.AbstractTree;
|
||||
import net.minecraft.util.EnumFacing;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IWorld;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
import net.minecraft.world.gen.IChunkGenerator;
|
||||
import net.minecraft.world.gen.feature.AbstractTreeFeature;
|
||||
import net.minecraft.world.gen.feature.NoFeatureConfig;
|
||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||
import net.minecraftforge.common.IPlantable;
|
||||
import net.minecraftforge.fml.common.IWorldGenerator;
|
||||
|
@ -40,9 +43,10 @@ import techreborn.blocks.BlockRubberLeaves;
|
|||
import techreborn.blocks.BlockRubberLog;
|
||||
import techreborn.init.TRContent;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Random;
|
||||
|
||||
public class RubberTreeGenerator implements IWorldGenerator {
|
||||
public class RubberTreeGenerator extends AbstractTree implements IWorldGenerator {
|
||||
|
||||
boolean isWorldGen = true;
|
||||
|
||||
|
@ -50,6 +54,12 @@ public class RubberTreeGenerator implements IWorldGenerator {
|
|||
super();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public RubberTreeGenerator(boolean isWorldGen) {
|
||||
super(!isWorldGen);
|
||||
this.isWorldGen = isWorldGen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue