net.minecraft.world.gen.feature.WorldGenAbstractTree Java Examples

The following examples show how to use net.minecraft.world.gen.feature.WorldGenAbstractTree. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BiomeAutumnalWoodedHills.java    From Traverse-Legacy-1-12-2 with MIT License 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
    int num = rand.nextInt(5);
    if (num == 0) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, RED_AUTUMNAL_LEAVES);
    } else if (num == 1) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, BROWN_AUTUMNAL_LEAVES);
    } else if (num == 2) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, ORANGE_AUTUMNAL_LEAVES);
    } else if (num == 3) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, YELLOW_AUTUMNAL_LEAVES);
    } else {
        return TREE_FEATURE;
    }
}
 
Example #2
Source File: BiomeAutumnalWoods.java    From Traverse-Legacy-1-12-2 with MIT License 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(5);
	if (num == 0) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, RED_AUTUMNAL_LEAVES);
	} else if (num == 1) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, BROWN_AUTUMNAL_LEAVES);
	} else if (num == 2) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, ORANGE_AUTUMNAL_LEAVES);
	} else if (num == 3) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, YELLOW_AUTUMNAL_LEAVES);
	} else {
		return TREE_FEATURE;
	}
}
 
Example #3
Source File: BiomeWoodlands.java    From Traverse-Legacy-1-12-2 with MIT License 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(3);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}
	return TREE_FEATURE;
}
 
Example #4
Source File: BiomeBadlands.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(2);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}

	return TREE_FEATURE;
}
 
Example #5
Source File: BiomeBambooForest.java    From Sakura_mod with MIT License 5 votes vote down vote up
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	if (rand.nextInt(160) == 0) {
        return SAKURA_BIG;
    }else if (rand.nextInt(40) == 0) {
        return SAKURA;
    } else if (rand.nextInt(20) == 0) {
        return BIG_TREE_FEATURE;
    } else {
        return new WorldGenBamboo(false);
    }
}
 
Example #6
Source File: BiomeAutumnalWoods.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(5);
	if (num == 0) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, RED_AUTUMNAL_LEAVES);
	} else if (num == 1) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, BROWN_AUTUMNAL_LEAVES);
	} else if (num == 2) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, ORANGE_AUTUMNAL_LEAVES);
	} else if (num == 3) {
		return new TraverseTreeGenerator(true, 4, OAK_LOG, YELLOW_AUTUMNAL_LEAVES);
	} else {
		return TREE_FEATURE;
	}
}
 
Example #7
Source File: BiomeAutumnalWoodedHills.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
    int num = rand.nextInt(5);
    if (num == 0) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, RED_AUTUMNAL_LEAVES);
    } else if (num == 1) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, BROWN_AUTUMNAL_LEAVES);
    } else if (num == 2) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, ORANGE_AUTUMNAL_LEAVES);
    } else if (num == 3) {
        return new TraverseTreeGenerator(true, 4, OAK_LOG, YELLOW_AUTUMNAL_LEAVES);
    } else {
        return TREE_FEATURE;
    }
}
 
Example #8
Source File: BiomeAridHighland.java    From Traverse-Legacy-1-12-2 with MIT License 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	if (rand.nextInt(3) == 0) {
		return TREE_FEATURE;
	}
	return ACACIA_TREE_FEATURE;
}
 
Example #9
Source File: BiomeBadlands.java    From Traverse-Legacy-1-12-2 with MIT License 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(2);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}

	return TREE_FEATURE;
}
 
Example #10
Source File: BiomeWoodlands.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(3);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}
	return TREE_FEATURE;
}
 
Example #11
Source File: BiomeAridHighland.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	if (rand.nextInt(3) == 0) {
		return TREE_FEATURE;
	}
	return ACACIA_TREE_FEATURE;
}
 
Example #12
Source File: BiomeConiferousForest.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return FIR_TREE_FEATURE;
}
 
Example #13
Source File: BiomeLushSwamp.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return CUSTOM_SWAMP_TREE_FEATURE;
}
 
Example #14
Source File: BiomeGlacier.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
    return new WorldGenTaiga2(false);
}
 
Example #15
Source File: BiomeDesertShrubland.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
}
 
Example #16
Source File: BiomeLushSwamp.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return CUSTOM_SWAMP_TREE_FEATURE;
}
 
Example #17
Source File: BiomeGenOceanSpires.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(Blocks.LOG.getDefaultState(), Blocks.LEAVES.getDefaultState());
}
 
Example #18
Source File: BiomeGenAlienForest.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return noTree;
}
 
Example #19
Source File: BiomeGenDeepSwamp.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return this.SWAMP_FEATURE;
}
 
Example #20
Source File: BiomeGenStormland.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return charTree;
}
 
Example #21
Source File: BiomeGenMarsh.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(Blocks.LOG.getDefaultState(), Blocks.LEAVES.getDefaultState());
}
 
Example #22
Source File: BiomeLushHills.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return TREE_FEATURE;
}
 
Example #23
Source File: BiomeThicket.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return TALLER_OAK_TREE_FEATURE;
}
 
Example #24
Source File: BiomeZundaTofuPlains.java    From TofuCraftReload with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree genBigTreeChance(Random par1Random) // getRandomWorldGenForTrees
{
    return this.worldGeneratorTrees;
}
 
Example #25
Source File: BiomeDesertShrubland.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
}
 
Example #26
Source File: BiomeGlacier.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
    return new WorldGenTaiga2(false);
}
 
Example #27
Source File: BiomeConiferousForest.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return FIR_TREE_FEATURE;
}
 
Example #28
Source File: BiomeLushHills.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return TREE_FEATURE;
}
 
Example #29
Source File: BiomeThicket.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return TALLER_OAK_TREE_FEATURE;
}
 
Example #30
Source File: BiomeMapleForest.java    From Sakura_mod with MIT License 4 votes vote down vote up
public WorldGenAbstractTree getRandomTreeFeature(Random rand)
  {
  	switch (rand.nextInt(32)) {
case 0:
	return (WorldGenAbstractTree)RED_MAPLETREE_SAP;
case 1:
	return (WorldGenAbstractTree)RED_MAPLETREE;	
case 2:
	return (WorldGenAbstractTree)YELLOW_MAPLETREE_SAP;
case 3:
	return (WorldGenAbstractTree)YELLOW_MAPLETREE;	
case 4:
	return (WorldGenAbstractTree)ORANGE_MAPLETREE_SAP;
case 5:
	return (WorldGenAbstractTree)ORANGE_MAPLETREE;	
case 6:
	return (WorldGenAbstractTree)GREEN_MAPLETREE_SAP;
case 7:
	return (WorldGenAbstractTree)GREEN_MAPLETREE;	
case 8:
	return (WorldGenAbstractTree)RED_MAPLETREE_SAP;
case 9:
	return (WorldGenAbstractTree)RED_MAPLETREE;	
case 10:
	return (WorldGenAbstractTree)YELLOW_MAPLETREE_SAP;
case 11:
	return (WorldGenAbstractTree)YELLOW_MAPLETREE;	
case 12:
	return (WorldGenAbstractTree)ORANGE_MAPLETREE_SAP;
case 13:
	return (WorldGenAbstractTree)ORANGE_MAPLETREE;	
case 14:
	return (WorldGenAbstractTree)GREEN_MAPLETREE_SAP;
case 15:
	return (WorldGenAbstractTree)GREEN_MAPLETREE;
case 16:
	return (WorldGenAbstractTree)BIG_RED_MAPLETREE_SAP;
case 17:
	return (WorldGenAbstractTree)RED_MAPLETREE;	
case 18:
	return (WorldGenAbstractTree)BIG_YELLOW_MAPLETREE_SAP;
case 19:
	return (WorldGenAbstractTree)BIG_YELLOW_MAPLETREE;	
case 20:
	return (WorldGenAbstractTree)BIG_ORANGE_MAPLETREE_SAP;
case 21:
	return (WorldGenAbstractTree)BIG_ORANGE_MAPLETREE;	
case 22:
	return (WorldGenAbstractTree)GREEN_MAPLETREE_SAP;
case 23:
	return (WorldGenAbstractTree)GREEN_MAPLETREE;	
case 24:
	return (WorldGenAbstractTree)RED_MAPLETREE_SAP;
case 25:
	return (WorldGenAbstractTree)RED_MAPLETREE;	
case 26:
	return (WorldGenAbstractTree)YELLOW_MAPLETREE_SAP;
case 27:
	return (WorldGenAbstractTree)YELLOW_MAPLETREE;	
case 28:
	return (WorldGenAbstractTree)ORANGE_MAPLETREE_SAP;
case 29:
	return (WorldGenAbstractTree)ORANGE_MAPLETREE;	
case 30:
	return (WorldGenAbstractTree)GREEN_MAPLETREE_SAP;
case 31:
	return (WorldGenAbstractTree)GREEN_MAPLETREE;	
default:
	return (WorldGenAbstractTree)RED_MAPLETREE;
}
  }