Class FallenLargeTrunkPlacer
java.lang.Object
net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
net.frozenblock.wilderwild.worldgen.impl.trunk.FallenLargeTrunkPlacer
public class FallenLargeTrunkPlacer
extends net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FallenLargeTrunkPlacer> final intfinal intfinal floatFields inherited from class net.minecraft.world.level.levelgen.feature.trunkplacers.TrunkPlacer
baseHeight, heightRandA, heightRandB, MAX_HEIGHT -
Constructor Summary
ConstructorsConstructorDescriptionFallenLargeTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, float successInWaterChance) -
Method Summary
Modifier and TypeMethodDescriptionprotected static <P extends FallenLargeTrunkPlacer>
@NotNull com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>, Integer, Integer, Integer, Float> 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
-
successInWaterChance
public final float successInWaterChance -
minHeight
public final int minHeight -
maxHeight
public final int maxHeight
-
-
Constructor Details
-
FallenLargeTrunkPlacer
public FallenLargeTrunkPlacer(int baseHeight, int firstRandomHeight, int secondRandomHeight, float successInWaterChance)
-
-
Method Details
-
fallenTrunkCodec
@Contract("_ -> new") protected static <P extends FallenLargeTrunkPlacer> @NotNull com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Integer, fallenTrunkCodecInteger, Integer, Float> (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
-