25 lines
1021 B
Java
25 lines
1021 B
Java
/*******************************************************************************
|
|
* Copyright 2014-2019, the Biomes O' Plenty Team
|
|
*
|
|
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
|
|
*
|
|
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
|
|
******************************************************************************/
|
|
package biomesoplenty.common.world.gen.feature;
|
|
|
|
import java.util.Random;
|
|
|
|
import biomesoplenty.api.block.BOPBlocks;
|
|
import net.minecraft.block.state.IBlockState;
|
|
import net.minecraft.init.Blocks;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.world.gen.feature.AbstractFlowersFeature;
|
|
|
|
public class OriginFlowersFeature extends AbstractFlowersFeature
|
|
{
|
|
@Override
|
|
public IBlockState getRandomFlower(Random p_202355_1_, BlockPos p_202355_2_)
|
|
{
|
|
return p_202355_1_.nextFloat() > 0.6666667F ? Blocks.DANDELION.getDefaultState() : BOPBlocks.rose.getDefaultState();
|
|
}
|
|
} |