Class Carver<C extends CarverConfig>

java.lang.Object
net.minecraft.world.gen.carver.Carver<C>
Direct Known Subclasses:
CaveCarver, RavineCarver

public abstract class Carver<C extends CarverConfig>
extends Object
Mappings:
Namespace Name
official cni
intermediary net/minecraft/class_2939
named net/minecraft/world/gen/carver/Carver
  • Field Details

    • CAVE

      public static final Carver<ProbabilityConfig> CAVE
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a:Lcni;
      intermediary field_13304 Lnet/minecraft/class_2939;field_13304:Lnet/minecraft/class_2939;
      named CAVE Lnet/minecraft/world/gen/carver/Carver;CAVE:Lnet/minecraft/world/gen/carver/Carver;
    • NETHER_CAVE

      public static final Carver<ProbabilityConfig> NETHER_CAVE
      Mappings:
      Namespace Name Mixin selector
      official b Lcni;b:Lcni;
      intermediary field_13297 Lnet/minecraft/class_2939;field_13297:Lnet/minecraft/class_2939;
      named NETHER_CAVE Lnet/minecraft/world/gen/carver/Carver;NETHER_CAVE:Lnet/minecraft/world/gen/carver/Carver;
    • CANYON

      public static final Carver<ProbabilityConfig> CANYON
      Mappings:
      Namespace Name Mixin selector
      official c Lcni;c:Lcni;
      intermediary field_13295 Lnet/minecraft/class_2939;field_13295:Lnet/minecraft/class_2939;
      named CANYON Lnet/minecraft/world/gen/carver/Carver;CANYON:Lnet/minecraft/world/gen/carver/Carver;
    • UNDERWATER_CANYON

      public static final Carver<ProbabilityConfig> UNDERWATER_CANYON
      Mappings:
      Namespace Name Mixin selector
      official d Lcni;d:Lcni;
      intermediary field_13303 Lnet/minecraft/class_2939;field_13303:Lnet/minecraft/class_2939;
      named UNDERWATER_CANYON Lnet/minecraft/world/gen/carver/Carver;UNDERWATER_CANYON:Lnet/minecraft/world/gen/carver/Carver;
    • UNDERWATER_CAVE

      public static final Carver<ProbabilityConfig> UNDERWATER_CAVE
      Mappings:
      Namespace Name Mixin selector
      official e Lcni;e:Lcni;
      intermediary field_13300 Lnet/minecraft/class_2939;field_13300:Lnet/minecraft/class_2939;
      named UNDERWATER_CAVE Lnet/minecraft/world/gen/carver/Carver;UNDERWATER_CAVE:Lnet/minecraft/world/gen/carver/Carver;
    • AIR

      protected static final BlockState AIR
      Mappings:
      Namespace Name Mixin selector
      official f Lcni;f:Lcht;
      intermediary field_13301 Lnet/minecraft/class_2939;field_13301:Lnet/minecraft/class_2680;
      named AIR Lnet/minecraft/world/gen/carver/Carver;AIR:Lnet/minecraft/block/BlockState;
    • CAVE_AIR

      protected static final BlockState CAVE_AIR
      Mappings:
      Namespace Name Mixin selector
      official g Lcni;g:Lcht;
      intermediary field_13294 Lnet/minecraft/class_2939;field_13294:Lnet/minecraft/class_2680;
      named CAVE_AIR Lnet/minecraft/world/gen/carver/Carver;CAVE_AIR:Lnet/minecraft/block/BlockState;
    • WATER

      protected static final FluidState WATER
      Mappings:
      Namespace Name Mixin selector
      official h Lcni;h:Ldal;
      intermediary field_13305 Lnet/minecraft/class_2939;field_13305:Lnet/minecraft/class_3610;
      named WATER Lnet/minecraft/world/gen/carver/Carver;WATER:Lnet/minecraft/fluid/FluidState;
    • LAVA

      protected static final FluidState LAVA
      Mappings:
      Namespace Name Mixin selector
      official i Lcni;i:Ldal;
      intermediary field_13296 Lnet/minecraft/class_2939;field_13296:Lnet/minecraft/class_3610;
      named LAVA Lnet/minecraft/world/gen/carver/Carver;LAVA:Lnet/minecraft/fluid/FluidState;
    • alwaysCarvableBlocks

      protected Set<Block> alwaysCarvableBlocks
      Mappings:
      Namespace Name Mixin selector
      official j Lcni;j:Ljava/util/Set;
      intermediary field_13302 Lnet/minecraft/class_2939;field_13302:Ljava/util/Set;
      named alwaysCarvableBlocks Lnet/minecraft/world/gen/carver/Carver;alwaysCarvableBlocks:Ljava/util/Set;
    • carvableFluids

      protected Set<Fluid> carvableFluids
      Mappings:
      Namespace Name Mixin selector
      official k Lcni;k:Ljava/util/Set;
      intermediary field_13298 Lnet/minecraft/class_2939;field_13298:Ljava/util/Set;
      named carvableFluids Lnet/minecraft/world/gen/carver/Carver;carvableFluids:Ljava/util/Set;
    • codec

      private final com.mojang.serialization.Codec<ConfiguredCarver<C extends CarverConfig>> codec
      Mappings:
      Namespace Name Mixin selector
      official m Lcni;m:Lcom/mojang/serialization/Codec;
      intermediary field_24831 Lnet/minecraft/class_2939;field_24831:Lcom/mojang/serialization/Codec;
      named codec Lnet/minecraft/world/gen/carver/Carver;codec:Lcom/mojang/serialization/Codec;
    • heightLimit

      protected final int heightLimit
      Mappings:
      Namespace Name Mixin selector
      official l Lcni;l:I
      intermediary field_16653 Lnet/minecraft/class_2939;field_16653:I
      named heightLimit Lnet/minecraft/world/gen/carver/Carver;heightLimit:I
  • Constructor Details

    • Carver

      public Carver​(com.mojang.serialization.Codec<C> configCodec, int heightLimit)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcni;<init>(Lcom/mojang/serialization/Codec;I)V
      intermediary <init> Lnet/minecraft/class_2939;<init>(Lcom/mojang/serialization/Codec;I)V
      named <init> Lnet/minecraft/world/gen/carver/Carver;<init>(Lcom/mojang/serialization/Codec;I)V
  • Method Details

    • register

      private static <C extends CarverConfig,​ F extends Carver<C>> F register​(String name, F carver)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Ljava/lang/String;Lcni;)Lcni;
      intermediary method_12704 Lnet/minecraft/class_2939;method_12704(Ljava/lang/String;Lnet/minecraft/class_2939;)Lnet/minecraft/class_2939;
      named register Lnet/minecraft/world/gen/carver/Carver;register(Ljava/lang/String;Lnet/minecraft/world/gen/carver/Carver;)Lnet/minecraft/world/gen/carver/Carver;
    • configure

      public ConfiguredCarver<C> configure​(C config)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lcnb;)Lcnd;
      intermediary method_28614 Lnet/minecraft/class_2939;method_28614(Lnet/minecraft/class_2920;)Lnet/minecraft/class_2922;
      named configure Lnet/minecraft/world/gen/carver/Carver;configure(Lnet/minecraft/world/gen/carver/CarverConfig;)Lnet/minecraft/world/gen/carver/ConfiguredCarver;
    • getCodec

      public com.mojang.serialization.Codec<ConfiguredCarver<C>> getCodec()
      Mappings:
      Namespace Name Mixin selector
      official c Lcni;c()Lcom/mojang/serialization/Codec;
      intermediary method_28616 Lnet/minecraft/class_2939;method_28616()Lcom/mojang/serialization/Codec;
      named getCodec Lnet/minecraft/world/gen/carver/Carver;getCodec()Lcom/mojang/serialization/Codec;
    • getBranchFactor

      public int getBranchFactor()
      Mappings:
      Namespace Name Mixin selector
      official d Lcni;d()I
      intermediary method_12710 Lnet/minecraft/class_2939;method_12710()I
      named getBranchFactor Lnet/minecraft/world/gen/carver/Carver;getBranchFactor()I
    • carveRegion

      protected boolean carveRegion​(Chunk chunk, Function<BlockPos,​Biome> posToBiome, long seed, int seaLevel, int chunkX, int chunkZ, double x, double y, double z, double yaw, double pitch, BitSet carvingMask)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lcjl;Ljava/util/function/Function;JIIIDDDDDLjava/util/BitSet;)Z
      intermediary method_16580 Lnet/minecraft/class_2939;method_16580(Lnet/minecraft/class_2791;Ljava/util/function/Function;JIIIDDDDDLjava/util/BitSet;)Z
      named carveRegion Lnet/minecraft/world/gen/carver/Carver;carveRegion(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;JIIIDDDDDLjava/util/BitSet;)Z
    • carveAtPoint

      protected boolean carveAtPoint​(Chunk chunk, Function<BlockPos,​Biome> posToBiome, BitSet carvingMask, Random random, BlockPos.Mutable currentPos, BlockPos.Mutable upperPos, BlockPos.Mutable lowerPos, int seaLevel, int mainChunkX, int mainChunkZ, int x, int z, int relativeX, int y, int relativeZ, MutableBoolean visitedSurface)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lcjl;Ljava/util/function/Function;Ljava/util/BitSet;Ljava/util/Random;Lfx$a;Lfx$a;Lfx$a;IIIIIIIILorg/apache/commons/lang3/mutable/MutableBoolean;)Z
      intermediary method_16581 Lnet/minecraft/class_2939;method_16581(Lnet/minecraft/class_2791;Ljava/util/function/Function;Ljava/util/BitSet;Ljava/util/Random;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_2338$class_2339;IIIIIIIILorg/apache/commons/lang3/mutable/MutableBoolean;)Z
      named carveAtPoint Lnet/minecraft/world/gen/carver/Carver;carveAtPoint(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Ljava/util/BitSet;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/util/math/BlockPos$Mutable;IIIIIIIILorg/apache/commons/lang3/mutable/MutableBoolean;)Z
    • carve

      public abstract boolean carve​(Chunk chunk, Function<BlockPos,​Biome> posToBiome, Random random, int seaLevel, int chunkX, int chunkZ, int mainChunkX, int mainChunkZ, BitSet carvingMask, C config)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lcjl;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lcnb;)Z
      intermediary method_12702 Lnet/minecraft/class_2939;method_12702(Lnet/minecraft/class_2791;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lnet/minecraft/class_2920;)Z
      named carve Lnet/minecraft/world/gen/carver/Carver;carve(Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Ljava/util/Random;IIIIILjava/util/BitSet;Lnet/minecraft/world/gen/carver/CarverConfig;)Z
    • shouldCarve

      public abstract boolean shouldCarve​(Random random, int chunkX, int chunkZ, C config)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Ljava/util/Random;IILcnb;)Z
      intermediary method_12705 Lnet/minecraft/class_2939;method_12705(Ljava/util/Random;IILnet/minecraft/class_2920;)Z
      named shouldCarve Lnet/minecraft/world/gen/carver/Carver;shouldCarve(Ljava/util/Random;IILnet/minecraft/world/gen/carver/CarverConfig;)Z
    • canAlwaysCarveBlock

      protected boolean canAlwaysCarveBlock​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lcht;)Z
      intermediary method_12709 Lnet/minecraft/class_2939;method_12709(Lnet/minecraft/class_2680;)Z
      named canAlwaysCarveBlock Lnet/minecraft/world/gen/carver/Carver;canAlwaysCarveBlock(Lnet/minecraft/block/BlockState;)Z
    • canCarveBlock

      protected boolean canCarveBlock​(BlockState state, BlockState stateAbove)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lcht;Lcht;)Z
      intermediary method_12703 Lnet/minecraft/class_2939;method_12703(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Z
      named canCarveBlock Lnet/minecraft/world/gen/carver/Carver;canCarveBlock(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)Z
    • isRegionUncarvable

      protected boolean isRegionUncarvable​(Chunk chunk, int mainChunkX, int mainChunkZ, int relMinX, int relMaxX, int minY, int maxY, int relMinZ, int relMaxZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(Lcjl;IIIIIIII)Z
      intermediary method_12711 Lnet/minecraft/class_2939;method_12711(Lnet/minecraft/class_2791;IIIIIIII)Z
      named isRegionUncarvable Lnet/minecraft/world/gen/carver/Carver;isRegionUncarvable(Lnet/minecraft/world/chunk/Chunk;IIIIIIII)Z
    • isOnBoundary

      private boolean isOnBoundary​(int minX, int maxX, int minZ, int maxZ, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(IIIIII)Z
      intermediary method_12706 Lnet/minecraft/class_2939;method_12706(IIIIII)Z
      named isOnBoundary Lnet/minecraft/world/gen/carver/Carver;isOnBoundary(IIIIII)Z
    • canCarveBranch

      protected boolean canCarveBranch​(int mainChunkX, int mainChunkZ, double x, double z, int branch, int branchCount, float baseWidth)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(IIDDIIF)Z
      intermediary method_12707 Lnet/minecraft/class_2939;method_12707(IIDDIIF)Z
      named canCarveBranch Lnet/minecraft/world/gen/carver/Carver;canCarveBranch(IIDDIIF)Z
    • isPositionExcluded

      protected abstract boolean isPositionExcluded​(double scaledRelativeX, double scaledRelativeY, double scaledRelativeZ, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Lcni;a(DDDI)Z
      intermediary method_16582 Lnet/minecraft/class_2939;method_16582(DDDI)Z
      named isPositionExcluded Lnet/minecraft/world/gen/carver/Carver;isPositionExcluded(DDDI)Z