Package net.minecraft.world.gen.carver
Class WorldCarver<C extends ICarverConfig>
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<WorldCarver<?>>
-
- net.minecraft.world.gen.carver.WorldCarver<C>
-
- All Implemented Interfaces:
IForgeRegistryEntry<WorldCarver<?>>
- Direct Known Subclasses:
CanyonWorldCarver
,CaveWorldCarver
public abstract class WorldCarver<C extends ICarverConfig> extends ForgeRegistryEntry<WorldCarver<?>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description protected static BlockState
AIR
static WorldCarver<ProbabilityConfig>
CANYON
static WorldCarver<ProbabilityConfig>
CAVE
protected static BlockState
CAVE_AIR
private com.mojang.serialization.Codec<ConfiguredCarver<C>>
configuredCodec
protected int
genHeight
protected static FluidState
LAVA
protected java.util.Set<Fluid>
liquids
static WorldCarver<ProbabilityConfig>
NETHER_CAVE
protected java.util.Set<Block>
replaceableBlocks
static WorldCarver<ProbabilityConfig>
UNDERWATER_CANYON
static WorldCarver<ProbabilityConfig>
UNDERWATER_CAVE
protected static FluidState
WATER
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description WorldCarver(com.mojang.serialization.Codec<C> p_i231921_1_, int p_i231921_2_)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
canReach(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 boolean
canReplaceBlock(BlockState p_222706_1_)
protected boolean
canReplaceBlock(BlockState p_222707_1_, BlockState p_222707_2_)
abstract boolean
carve(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
carveBlock(IChunk p_230358_1_, java.util.function.Function<BlockPos,Biome> p_230358_2_, java.util.BitSet p_230358_3_, java.util.Random p_230358_4_, BlockPos.Mutable p_230358_5_, BlockPos.Mutable p_230358_6_, BlockPos.Mutable p_230358_7_, int p_230358_8_, int p_230358_9_, int p_230358_10_, int p_230358_11_, int p_230358_12_, int p_230358_13_, int p_230358_14_, int p_230358_15_, org.apache.commons.lang3.mutable.MutableBoolean p_230358_16_)
protected boolean
carveSphere(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_)
ConfiguredCarver<C>
configured(C p_242761_1_)
com.mojang.serialization.Codec<ConfiguredCarver<C>>
configuredCodec()
int
getRange()
protected boolean
hasWater(IChunk p_222700_1_, int p_222700_2_, int p_222700_3_, int p_222700_4_, int p_222700_5_, int p_222700_6_, int p_222700_7_, int p_222700_8_, int p_222700_9_)
private boolean
isEdge(int p_222701_1_, int p_222701_2_, int p_222701_3_, int p_222701_4_, int p_222701_5_, int p_222701_6_)
abstract boolean
isStartChunk(java.util.Random p_212868_1_, int p_212868_2_, int p_212868_3_, C p_212868_4_)
private static <C extends ICarverConfig,F extends WorldCarver<C>>
Fregister(java.lang.String p_222699_0_, F p_222699_1_)
protected abstract boolean
skip(double p_222708_1_, double p_222708_3_, double p_222708_5_, int p_222708_7_)
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Field Detail
-
CAVE
public static final WorldCarver<ProbabilityConfig> CAVE
-
NETHER_CAVE
public static final WorldCarver<ProbabilityConfig> NETHER_CAVE
-
CANYON
public static final WorldCarver<ProbabilityConfig> CANYON
-
UNDERWATER_CANYON
public static final WorldCarver<ProbabilityConfig> UNDERWATER_CANYON
-
UNDERWATER_CAVE
public static final WorldCarver<ProbabilityConfig> UNDERWATER_CAVE
-
AIR
protected static final BlockState AIR
-
CAVE_AIR
protected static final BlockState CAVE_AIR
-
WATER
protected static final FluidState WATER
-
LAVA
protected static final FluidState LAVA
-
replaceableBlocks
protected java.util.Set<Block> replaceableBlocks
-
liquids
protected java.util.Set<Fluid> liquids
-
configuredCodec
private final com.mojang.serialization.Codec<ConfiguredCarver<C extends ICarverConfig>> configuredCodec
-
genHeight
protected final int genHeight
-
-
Constructor Detail
-
WorldCarver
public WorldCarver(com.mojang.serialization.Codec<C> p_i231921_1_, int p_i231921_2_)
-
-
Method Detail
-
register
private static <C extends ICarverConfig,F extends WorldCarver<C>> F register(java.lang.String p_222699_0_, F p_222699_1_)
-
configured
public ConfiguredCarver<C> configured(C p_242761_1_)
-
configuredCodec
public com.mojang.serialization.Codec<ConfiguredCarver<C>> configuredCodec()
-
getRange
public int getRange()
-
carveSphere
protected boolean carveSphere(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_)
-
carveBlock
protected boolean carveBlock(IChunk p_230358_1_, java.util.function.Function<BlockPos,Biome> p_230358_2_, java.util.BitSet p_230358_3_, java.util.Random p_230358_4_, BlockPos.Mutable p_230358_5_, BlockPos.Mutable p_230358_6_, BlockPos.Mutable p_230358_7_, int p_230358_8_, int p_230358_9_, int p_230358_10_, int p_230358_11_, int p_230358_12_, int p_230358_13_, int p_230358_14_, int p_230358_15_, org.apache.commons.lang3.mutable.MutableBoolean p_230358_16_)
-
carve
public abstract boolean carve(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_)
-
isStartChunk
public abstract boolean isStartChunk(java.util.Random p_212868_1_, int p_212868_2_, int p_212868_3_, C p_212868_4_)
-
canReplaceBlock
protected boolean canReplaceBlock(BlockState p_222706_1_)
-
canReplaceBlock
protected boolean canReplaceBlock(BlockState p_222707_1_, BlockState p_222707_2_)
-
hasWater
protected boolean hasWater(IChunk p_222700_1_, int p_222700_2_, int p_222700_3_, int p_222700_4_, int p_222700_5_, int p_222700_6_, int p_222700_7_, int p_222700_8_, int p_222700_9_)
-
isEdge
private boolean isEdge(int p_222701_1_, int p_222701_2_, int p_222701_3_, int p_222701_4_, int p_222701_5_, int p_222701_6_)
-
canReach
protected boolean canReach(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_)
-
skip
protected abstract boolean skip(double p_222708_1_, double p_222708_3_, double p_222708_5_, int p_222708_7_)
-
-