Class FallenWithLogsTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.frozenblock.wilderwild.worldgen.impl.trunk.FallenWithLogsTrunkPlacer
public class FallenWithLogsTrunkPlacer
extends net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatstatic final com.mojang.serialization.Codec<FallenWithLogsTrunkPlacer> final floatfinal net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProviderfinal net.minecraft.util.valueproviders.IntProviderfinal floatFields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionFallenWithLogsTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hollowedState, float branchChance, float successInWaterChance, float hollowedLogProbability, @NotNull net.minecraft.util.valueproviders.IntProvider maxBranchCount) -
Method Summary
Modifier and TypeMethodDescriptionprotected static <P extends FallenWithLogsTrunkPlacer>
@NotNull com.mojang.datafixers.Products.P8<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>, Integer, Integer, Integer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider, Float, Float, Float, net.minecraft.util.valueproviders.IntProvider> fallenTrunkCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> builder) @NotNull List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(@NotNull net.minecraft.world.level.LevelSimulatedReader level, @NotNull BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> replacer, @NotNull net.minecraft.util.RandomSource random, int height, @NotNull net.minecraft.core.BlockPos startPos, @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config) protected @NotNull net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?> type()Methods inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
getTreeHeight, isDirt, isFree, placeLog, placeLog, placeLogIfFree, setDirtAt, trunkPlacerParts, validTreePos
-
Field Details
-
CODEC
-
hollowedState
public final net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hollowedState -
branchChance
public final float branchChance -
maxBranchCount
public final net.minecraft.util.valueproviders.IntProvider maxBranchCount -
hollowedLogChance
public final float hollowedLogChance -
successInWaterChance
public final float successInWaterChance
-
-
Constructor Details
-
FallenWithLogsTrunkPlacer
public FallenWithLogsTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider hollowedState, float branchChance, float successInWaterChance, float hollowedLogProbability, @NotNull @NotNull net.minecraft.util.valueproviders.IntProvider maxBranchCount)
-
-
Method Details
-
fallenTrunkCodec
@Contract("_ -> new") protected static <P extends FallenWithLogsTrunkPlacer> @NotNull com.mojang.datafixers.Products.P8<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer, fallenTrunkCodecInteger, Integer, net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider, Float, Float, Float, net.minecraft.util.valueproviders.IntProvider> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> builder) -
type
@NotNull protected @NotNull net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacerType<?> type()- Specified by:
typein classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
placeTrunk
@NotNull public @NotNull List<net.minecraft.world.level.levelgen.feature.foliageplacers.FoliagePlacer.FoliageAttachment> placeTrunk(@NotNull @NotNull net.minecraft.world.level.LevelSimulatedReader level, @NotNull @NotNull BiConsumer<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> replacer, @NotNull @NotNull net.minecraft.util.RandomSource random, int height, @NotNull @NotNull net.minecraft.core.BlockPos startPos, @NotNull @NotNull net.minecraft.world.level.levelgen.feature.configurations.TreeConfiguration config) - Specified by:
placeTrunkin classnet.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-