Moved misc blocks to their own package. Start of rubber stuff

This commit is contained in:
drcrazy 2019-07-15 17:24:31 +03:00
parent 4f1593771e
commit d6788c8da5
14 changed files with 102 additions and 106 deletions

View file

@ -26,20 +26,17 @@ package techreborn.world;
import net.minecraft.block.sapling.SaplingGenerator;
import net.minecraft.world.IWorld;
import net.minecraft.world.World;
import net.minecraft.world.chunk.ChunkManager;
import net.minecraft.world.gen.chunk.ChunkGenerator;
import net.minecraft.world.gen.feature.AbstractTreeFeature;
import net.minecraft.world.gen.feature.DefaultFeatureConfig;
import javax.annotation.Nullable;
import java.util.Random;
public class RubberTreeGenerator extends SaplingGenerator {
public class RubberSaplingGenerator extends SaplingGenerator {
boolean isWorldGen = true;
public RubberTreeGenerator() {
public RubberSaplingGenerator() {
super();
}
@ -49,7 +46,7 @@ public class RubberTreeGenerator extends SaplingGenerator {
return null;
}
public RubberTreeGenerator(boolean isWorldGen) {
public RubberSaplingGenerator(boolean isWorldGen) {
super();
this.isWorldGen = isWorldGen;
}

View file

@ -0,0 +1,57 @@
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2018 TechReborn
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package techreborn.world;
import java.util.Random;
import java.util.Set;
import java.util.function.Function;
import com.mojang.datafixers.Dynamic;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MutableIntBoundingBox;
import net.minecraft.world.ModifiableTestableWorld;
import net.minecraft.world.gen.feature.AbstractTreeFeature;
import net.minecraft.world.gen.feature.DefaultFeatureConfig;
/**
* @author drcrazy
*
*/
public class RubberTreeFeature extends AbstractTreeFeature<DefaultFeatureConfig> {
public RubberTreeFeature(Function<Dynamic<?>, ? extends DefaultFeatureConfig> featureConfig, boolean boolean_1) {
super(featureConfig, boolean_1);
// TODO Auto-generated constructor stub
}
@Override
protected boolean generate(Set<BlockPos> changedBlocks, ModifiableTestableWorld worldIn, Random rand, BlockPos saplingPos,
MutableIntBoundingBox var5) {
// TODO Auto-generated method stub
return false;
}
}