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
FieldsModifier and TypeFieldDescriptionprotected static final BlockState
static final WorldCarver<ProbabilityConfig>
static final WorldCarver<ProbabilityConfig>
protected static final BlockState
private final com.mojang.serialization.Codec<ConfiguredCarver<C>>
protected final int
protected static final FluidState
static final WorldCarver<ProbabilityConfig>
static final WorldCarver<ProbabilityConfig>
static final WorldCarver<ProbabilityConfig>
protected static final FluidState
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
Constructor Summary
ConstructorsConstructorDescriptionWorldCarver
(com.mojang.serialization.Codec<C> p_i231921_1_, int p_i231921_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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_, Function<BlockPos, Biome> p_225555_2_, Random p_225555_3_, int p_225555_4_, int p_225555_5_, int p_225555_6_, int p_225555_7_, int p_225555_8_, BitSet p_225555_9_, C p_225555_10_) protected boolean
carveBlock
(IChunk p_230358_1_, Function<BlockPos, Biome> p_230358_2_, BitSet p_230358_3_, 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_, 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_, BitSet p_227208_18_) configured
(C p_242761_1_) com.mojang.serialization.Codec<ConfiguredCarver<C>>
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
(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>>
Fprotected 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 Details
-
CAVE
-
NETHER_CAVE
-
CANYON
-
UNDERWATER_CANYON
-
UNDERWATER_CAVE
-
AIR
-
CAVE_AIR
-
WATER
-
LAVA
-
replaceableBlocks
-
liquids
-
configuredCodec
private final com.mojang.serialization.Codec<ConfiguredCarver<C extends ICarverConfig>> configuredCodec -
genHeight
protected final int genHeight
-
-
Constructor Details
-
WorldCarver
-
-
Method Details
-
register
private static <C extends ICarverConfig,F extends WorldCarver<C>> F register(String p_222699_0_, F p_222699_1_) -
configured
-
configuredCodec
-
getRange
public int getRange() -
carveSphere
-
carveBlock
protected boolean carveBlock(IChunk p_230358_1_, Function<BlockPos, Biome> p_230358_2_, BitSet p_230358_3_, 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
-
isStartChunk
-
canReplaceBlock
-
canReplaceBlock
-
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_)
-