public abstract class WorldCarver<C extends ICarverConfig> extends ForgeRegistryEntry<WorldCarver<?>>
Modifier and Type | Field and Description |
---|---|
protected static BlockState |
AIR |
static WorldCarver<ProbabilityConfig> |
CANYON |
protected java.util.Set<Block> |
carvableBlocks |
protected java.util.Set<Fluid> |
carvableFluids |
static WorldCarver<ProbabilityConfig> |
CAVE |
protected static BlockState |
CAVE_AIR |
private java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> |
config |
static WorldCarver<ProbabilityConfig> |
HELL_CAVE |
protected static IFluidState |
LAVA |
protected int |
maxHeight |
static WorldCarver<ProbabilityConfig> |
UNDERWATER_CANYON |
static WorldCarver<ProbabilityConfig> |
UNDERWATER_CAVE |
protected static IFluidState |
WATER |
delegate
Constructor and Description |
---|
WorldCarver(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> p_i49921_1_,
int p_i49921_2_) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canCarveBlock(BlockState state,
BlockState aboveState) |
protected boolean |
func_222700_a(IChunk chunkIn,
int chunkX,
int chunkZ,
int minX,
int maxX,
int minY,
int maxY,
int minZ,
int maxZ) |
protected boolean |
func_222702_a(int p_222702_1_,
int p_222702_2_,
double p_222702_3_,
double p_222702_5_,
int p_222702_7_,
int p_222702_8_,
float p_222702_9_) |
int |
func_222704_c() |
protected abstract boolean |
func_222708_a(double p_222708_1_,
double p_222708_3_,
double p_222708_5_,
int p_222708_7_) |
abstract boolean |
func_225555_a_(IChunk p_225555_1_,
java.util.function.Function<BlockPos,Biome> p_225555_2_,
java.util.Random p_225555_3_,
int p_225555_4_,
int p_225555_5_,
int p_225555_6_,
int p_225555_7_,
int p_225555_8_,
java.util.BitSet p_225555_9_,
C p_225555_10_) |
protected boolean |
func_225556_a_(IChunk p_225556_1_,
java.util.function.Function<BlockPos,Biome> p_225556_2_,
java.util.BitSet p_225556_3_,
java.util.Random p_225556_4_,
BlockPos.Mutable p_225556_5_,
BlockPos.Mutable p_225556_6_,
BlockPos.Mutable p_225556_7_,
int p_225556_8_,
int p_225556_9_,
int p_225556_10_,
int p_225556_11_,
int p_225556_12_,
int p_225556_13_,
int p_225556_14_,
int p_225556_15_,
java.util.concurrent.atomic.AtomicBoolean p_225556_16_) |
protected boolean |
func_227208_a_(IChunk p_227208_1_,
java.util.function.Function<BlockPos,Biome> p_227208_2_,
long p_227208_3_,
int p_227208_5_,
int p_227208_6_,
int p_227208_7_,
double p_227208_8_,
double p_227208_10_,
double p_227208_12_,
double p_227208_14_,
double p_227208_16_,
java.util.BitSet p_227208_18_) |
protected boolean |
isCarvable(BlockState p_222706_1_) |
private boolean |
isOnEdge(int minX,
int maxX,
int minZ,
int maxZ,
int x,
int z) |
private static <C extends ICarverConfig,F extends WorldCarver<C>> |
register(java.lang.String key,
F carver) |
abstract boolean |
shouldCarve(java.util.Random rand,
int chunkX,
int chunkZ,
C config) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public static final WorldCarver<ProbabilityConfig> CAVE
public static final WorldCarver<ProbabilityConfig> HELL_CAVE
public static final WorldCarver<ProbabilityConfig> CANYON
public static final WorldCarver<ProbabilityConfig> UNDERWATER_CANYON
public static final WorldCarver<ProbabilityConfig> UNDERWATER_CAVE
protected static final BlockState AIR
protected static final BlockState CAVE_AIR
protected static final IFluidState WATER
protected static final IFluidState LAVA
protected java.util.Set<Block> carvableBlocks
protected java.util.Set<Fluid> carvableFluids
private final java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C extends ICarverConfig> config
protected final int maxHeight
public WorldCarver(java.util.function.Function<com.mojang.datafixers.Dynamic<?>,? extends C> p_i49921_1_, int p_i49921_2_)
private static <C extends ICarverConfig,F extends WorldCarver<C>> F register(java.lang.String key, F carver)
public int func_222704_c()
protected boolean func_227208_a_(IChunk p_227208_1_, java.util.function.Function<BlockPos,Biome> p_227208_2_, long p_227208_3_, int p_227208_5_, int p_227208_6_, int p_227208_7_, double p_227208_8_, double p_227208_10_, double p_227208_12_, double p_227208_14_, double p_227208_16_, java.util.BitSet p_227208_18_)
protected boolean func_225556_a_(IChunk p_225556_1_, java.util.function.Function<BlockPos,Biome> p_225556_2_, java.util.BitSet p_225556_3_, java.util.Random p_225556_4_, BlockPos.Mutable p_225556_5_, BlockPos.Mutable p_225556_6_, BlockPos.Mutable p_225556_7_, int p_225556_8_, int p_225556_9_, int p_225556_10_, int p_225556_11_, int p_225556_12_, int p_225556_13_, int p_225556_14_, int p_225556_15_, java.util.concurrent.atomic.AtomicBoolean p_225556_16_)
public abstract boolean func_225555_a_(IChunk p_225555_1_, java.util.function.Function<BlockPos,Biome> p_225555_2_, java.util.Random p_225555_3_, int p_225555_4_, int p_225555_5_, int p_225555_6_, int p_225555_7_, int p_225555_8_, java.util.BitSet p_225555_9_, C p_225555_10_)
public abstract boolean shouldCarve(java.util.Random rand, int chunkX, int chunkZ, C config)
protected boolean isCarvable(BlockState p_222706_1_)
protected boolean canCarveBlock(BlockState state, BlockState aboveState)
protected boolean func_222700_a(IChunk chunkIn, int chunkX, int chunkZ, int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
private boolean isOnEdge(int minX, int maxX, int minZ, int maxZ, int x, int z)
protected boolean func_222702_a(int p_222702_1_, int p_222702_2_, double p_222702_3_, double p_222702_5_, int p_222702_7_, int p_222702_8_, float p_222702_9_)
protected abstract boolean func_222708_a(double p_222708_1_, double p_222708_3_, double p_222708_5_, int p_222708_7_)