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> codec)
  • Method Details

    • place

      public boolean place(FeaturePlaceContext<TwistingVinesConfig> context)
      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:
      context - A context object with a reference to the level and the position the feature is being placed at
    • findFirstAirBlockAboveGround

      private static boolean findFirstAirBlockAboveGround(LevelAccessor level, BlockPos.MutableBlockPos pos)
    • placeWeepingVinesColumn

      public static void placeWeepingVinesColumn(LevelAccessor level, RandomSource random, BlockPos.MutableBlockPos pos, int length, int minAge, int maxAge)
    • isInvalidPlacementLocation

      private static boolean isInvalidPlacementLocation(LevelAccessor level, BlockPos pos)