Class TwistingVinesFeature

java.lang.Object
net.minecraft.world.level.levelgen.feature.Feature<TwistingVinesConfig>
net.minecraft.world.level.levelgen.feature.TwistingVinesFeature

public class TwistingVinesFeature extends Feature<TwistingVinesConfig>
  • Constructor Details

    • TwistingVinesFeature

      public TwistingVinesFeature(com.mojang.serialization.Codec<TwistingVinesConfig> p_67292_)
  • Method Details

    • place

      public boolean place(FeaturePlaceContext<TwistingVinesConfig> pContext)
      Places the given feature at the given location. During world generation, features are provided with a 3x3 region of chunks, centered on the chunk being generated, that they can safely generate into.
      Specified by:
      place in class Feature<TwistingVinesConfig>
      Parameters:
      pContext - A context object with a reference to the level and the position the feature is being placed at
    • findFirstAirBlockAboveGround

      private static boolean findFirstAirBlockAboveGround(LevelAccessor pLevel, BlockPos.MutableBlockPos pPos)
    • placeWeepingVinesColumn

      public static void placeWeepingVinesColumn(LevelAccessor pLevel, RandomSource pRandom, BlockPos.MutableBlockPos pPos, int pLength, int pMinAge, int pMaxAge)
    • isInvalidPlacementLocation

      private static boolean isInvalidPlacementLocation(LevelAccessor pLevel, BlockPos pPos)