Merge branch 'BOP-1.13-8.x.x' of https://github.com/Glitchfiend/BiomesOPlenty into BOP-1.14.x-9.x.x
This commit is contained in:
commit
9ffb7c5e5f
55 changed files with 107 additions and 0 deletions
|
@ -108,12 +108,14 @@ public class BayouBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x6FAA50;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x8BDB67;
|
||||
|
|
|
@ -101,12 +101,14 @@ public class BogBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xA89557;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xC67F5B;
|
||||
|
|
|
@ -103,12 +103,14 @@ public class BorealForestBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x9FB771;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xC9CE65;
|
||||
|
|
|
@ -99,12 +99,14 @@ public class BrushlandBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xE5DFA9;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xDAE0B3;
|
||||
|
|
|
@ -94,12 +94,14 @@ public class CherryBlossomGroveBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x8DC87B;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x69B866;
|
||||
|
|
|
@ -95,12 +95,14 @@ public class DeadForestBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xBAAD64;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xB7B763;
|
||||
|
|
|
@ -95,12 +95,14 @@ public class DryPlainsBiome extends BiomeBOP
|
|||
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xBAAD64;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xB7B763;
|
||||
|
|
|
@ -82,12 +82,14 @@ public class FlowerMeadowBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x63B26D;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x63B26D;
|
||||
|
|
|
@ -98,12 +98,14 @@ public class GrasslandBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x88C57F;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x6AB66F;
|
||||
|
|
|
@ -88,12 +88,14 @@ public class LavenderFieldBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xA1C36D;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xA1C36D;
|
||||
|
|
|
@ -103,12 +103,14 @@ public class MeadowBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x63B26D;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x63B26D;
|
||||
|
|
|
@ -99,12 +99,14 @@ public class MireBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x66704C;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x878E61;
|
||||
|
|
|
@ -104,12 +104,14 @@ public class MoorBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x71AA70;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x78C46D;
|
||||
|
|
|
@ -89,18 +89,21 @@ public class MysticGroveBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x66DBFF;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x69CFDB;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x70E0B5;
|
||||
|
|
|
@ -93,18 +93,21 @@ public class OminousWoodsBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x84A1CC;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x4C4A70;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x6B487C;
|
||||
|
|
|
@ -92,6 +92,7 @@ public class OrchardBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xC9F75D;
|
||||
|
|
|
@ -70,18 +70,21 @@ public class OriginBeachBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x80CCFE;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xA2FF5F;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x3AFF00;
|
||||
|
|
|
@ -74,18 +74,21 @@ public class OriginHillsBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x80CCFE;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xA2FF5F;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x3AFF00;
|
||||
|
|
|
@ -78,12 +78,14 @@ public class PastureBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xC8E580;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xADE07B;
|
||||
|
|
|
@ -95,12 +95,14 @@ public class PrairieBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xC8E580;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xADE07B;
|
||||
|
|
|
@ -97,12 +97,14 @@ public class PumpkinPatchBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xA6B952;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x91A627;
|
||||
|
|
|
@ -104,12 +104,14 @@ public class RainforestBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x40B45F;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x3FBF6A;
|
||||
|
|
|
@ -104,12 +104,14 @@ public class SeasonalForestBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xB5B952;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xA3A627;
|
||||
|
|
|
@ -102,12 +102,14 @@ public class ShieldBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x7C9B45;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x8EAF4F;
|
||||
|
|
|
@ -90,12 +90,14 @@ public class SilkgladeBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos) {
|
||||
double d0 = INFO_NOISE.getValue((double)pos.getX() * 0.0225D, (double)pos.getZ() * 0.0225D);
|
||||
return d0 < -0.1D ? 0xB2B39F : 0x939F76;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
double d0 = INFO_NOISE.getValue((double)pos.getX() * 0.0225D, (double)pos.getZ() * 0.0225D);
|
||||
|
|
|
@ -96,12 +96,14 @@ public class SnowyForestBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xAD9364;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xB7B763;
|
||||
|
|
|
@ -102,12 +102,14 @@ public class TemperateRainforestBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xB6D367;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x95D660;
|
||||
|
|
|
@ -106,12 +106,14 @@ public class TropicalRainforestBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xA7E140;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x88E140;
|
||||
|
|
|
@ -87,6 +87,7 @@ public class TropicsBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x66BCFF;
|
||||
|
|
|
@ -94,12 +94,14 @@ public class TundraBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xAD9364;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xB5A76C;
|
||||
|
|
|
@ -87,18 +87,21 @@ public class VolcanoBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x96A8CA;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xAD9364;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xB7B763;
|
||||
|
|
|
@ -85,18 +85,21 @@ public class VolcanoEdgeBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x96A8CA;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xAD9364;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xB7B763;
|
||||
|
|
|
@ -86,18 +86,21 @@ public class WastelandBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x70ADEF;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xAD9364;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xB5A76C;
|
||||
|
|
|
@ -107,12 +107,14 @@ public class WetlandBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x5A935F;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x4F9657;
|
||||
|
|
|
@ -75,6 +75,7 @@ public class WhiteBeachBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getSkyColorByTemp(float currentTemperature)
|
||||
{
|
||||
return 0x66BCFF;
|
||||
|
|
|
@ -101,12 +101,14 @@ public class WoodlandBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0x85C047;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0x68AF1A;
|
||||
|
|
|
@ -91,12 +91,14 @@ public class XericShrublandBiome extends BiomeBOP
|
|||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(BlockPos pos)
|
||||
{
|
||||
return 0xE5DFA9;
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getFoliageColor(BlockPos pos)
|
||||
{
|
||||
return 0xDAE0B3;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class DeadTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return (AbstractTreeFeature<NoFeatureConfig>)(random.nextInt(10) == 0 ? BOPBiomeFeatures.DYING_TREE : BOPBiomeFeatures.SMALL_DEAD_TREE);
|
||||
|
|
|
@ -10,6 +10,7 @@ import java.util.Random;
|
|||
public class EtherealTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return null;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class FloweringOakTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return (AbstractTreeFeature<NoFeatureConfig>)(random.nextInt(10) == 0 ? BOPBiomeFeatures.BIG_FLOWERING_OAK_TREE : BOPBiomeFeatures.FLOWERING_OAK_TREE);
|
||||
|
|
|
@ -10,6 +10,7 @@ import java.util.Random;
|
|||
public class HellbarkTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return null;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class JacarandaTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return BOPBiomeFeatures.JACARANDA_TREE;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class MagicTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return (AbstractTreeFeature<NoFeatureConfig>)(random.nextInt(10) == 0 ? BOPBiomeFeatures.BIG_MAGIC_TREE : BOPBiomeFeatures.MAGIC_TREE);
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class MahoganyTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return BOPBiomeFeatures.MAHOGANY_TREE;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class MapleTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return BOPBiomeFeatures.MAPLE_TREE;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class OrangeAutumnTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return BOPBiomeFeatures.ORANGE_AUTUMN_TREE;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class OriginTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return (AbstractTreeFeature<NoFeatureConfig>)(random.nextInt(10) == 0 ? BOPBiomeFeatures.BIG_ORIGIN_TREE : BOPBiomeFeatures.ORIGIN_TREE);
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class PalmTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return BOPBiomeFeatures.PALM_TREE;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class PinkCherryTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return (AbstractTreeFeature<NoFeatureConfig>)(random.nextInt(10) == 0 ? BOPBiomeFeatures.BIG_PINK_CHERRY_TREE : BOPBiomeFeatures.PINK_CHERRY_TREE);
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class WhiteCherryTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return (AbstractTreeFeature<NoFeatureConfig>)(random.nextInt(10) == 0 ? BOPBiomeFeatures.BIG_WHITE_CHERRY_TREE : BOPBiomeFeatures.WHITE_CHERRY_TREE);
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class WillowTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return BOPBiomeFeatures.WILLOW_TREE;
|
||||
|
|
|
@ -11,6 +11,7 @@ import java.util.Random;
|
|||
public class YellowAutumnTree extends Tree
|
||||
{
|
||||
@Nullable
|
||||
@Override
|
||||
protected AbstractTreeFeature<NoFeatureConfig> getTreeFeature(Random random)
|
||||
{
|
||||
return BOPBiomeFeatures.YELLOW_AUTUMN_TREE;
|
||||
|
|
|
@ -41,6 +41,7 @@ public class ItemBoatBOP extends Item
|
|||
* Called to trigger the item's "innate" right click behavior. To handle when this item is used on a Block, see
|
||||
* {@link #onItemUse}.
|
||||
*/
|
||||
@Override
|
||||
public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) {
|
||||
ItemStack itemstack = playerIn.getHeldItem(handIn);
|
||||
float f = 1.0F;
|
||||
|
|
|
@ -35,6 +35,7 @@ public class BOPEndBiomeProvider extends BiomeProvider {
|
|||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Biome getBiome(BlockPos pos, @Nullable Biome defaultBiome) {
|
||||
return this.func_201545_a(pos.getX() >> 4, pos.getZ() >> 4);
|
||||
}
|
||||
|
@ -71,10 +72,12 @@ public class BOPEndBiomeProvider extends BiomeProvider {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Biome[] getBiomes(int startX, int startZ, int xSize, int zSize) {
|
||||
return this.getBiomeBlock(startX, startZ, xSize, zSize);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Biome[] getBiomes(int x, int z, int width, int length, boolean cacheFlag) {
|
||||
Biome[] abiome = new Biome[width * length];
|
||||
Long2ObjectMap<Biome> long2objectmap = new Long2ObjectOpenHashMap<>();
|
||||
|
@ -97,6 +100,7 @@ public class BOPEndBiomeProvider extends BiomeProvider {
|
|||
return abiome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Biome> getBiomesInSquare(int centerX, int centerZ, int sideLength) {
|
||||
int i = centerX - sideLength >> 2;
|
||||
int j = centerZ - sideLength >> 2;
|
||||
|
@ -108,6 +112,7 @@ public class BOPEndBiomeProvider extends BiomeProvider {
|
|||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public BlockPos findBiomePosition(int x, int z, int range, List<Biome> biomes, Random random) {
|
||||
int i = x - range >> 2;
|
||||
int j = z - range >> 2;
|
||||
|
@ -134,6 +139,7 @@ public class BOPEndBiomeProvider extends BiomeProvider {
|
|||
return blockpos;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getHeightValue(int p_201536_1_, int p_201536_2_, int p_201536_3_, int p_201536_4_) {
|
||||
float f = (float)(p_201536_1_ * 2 + p_201536_3_);
|
||||
float f1 = (float)(p_201536_2_ * 2 + p_201536_4_);
|
||||
|
@ -158,6 +164,7 @@ public class BOPEndBiomeProvider extends BiomeProvider {
|
|||
return f2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasStructure(Structure<?> structureIn) {
|
||||
return this.hasStructureCache.computeIfAbsent(structureIn, (p_205008_1_) -> {
|
||||
for(Biome biome : this.field_205009_d) {
|
||||
|
@ -170,7 +177,12 @@ public class BOPEndBiomeProvider extends BiomeProvider {
|
|||
});
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
public Set<BlockState> getSurfaceBlocks() {
|
||||
=======
|
||||
@Override
|
||||
public Set<IBlockState> getSurfaceBlocks() {
|
||||
>>>>>>> 23ad4b22dd4f1d9f81ff5efa7bc6b9519d4d41af
|
||||
if (this.topBlocksCache.isEmpty()) {
|
||||
for(Biome biome : this.field_205009_d) {
|
||||
this.topBlocksCache.add(biome.getSurfaceBuilderConfig().getTop());
|
||||
|
|
|
@ -18,6 +18,7 @@ public class BigPumpkinFeature extends Feature<NoFeatureConfig>
|
|||
protected IBlockPosQuery placeOn = (world, pos) -> world.getBlockState(pos).getBlock() == Blocks.GRASS_BLOCK;
|
||||
protected IBlockPosQuery replace = (world, pos) -> world.getBlockState(pos).canBeReplacedByLeaves(world, pos);
|
||||
|
||||
@Override
|
||||
public boolean place(IWorld world, IChunkGenerator<? extends IChunkGenSettings> p_212245_2_, Random p_212245_3_, BlockPos startPos, NoFeatureConfig p_212245_5_)
|
||||
{
|
||||
while (startPos.getY() > 1 && this.replace.matches(world, startPos)) {startPos = startPos.down();}
|
||||
|
|
Loading…
Reference in a new issue