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 cqy
intermediary net/minecraft/class_2939
named net/minecraft/world/gen/carver/Carver
  • Field Details

    • CAVE

      public static final Carver<CaveCarverConfig> CAVE
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a:Lcqy;
      intermediary field_29060 Lnet/minecraft/class_2939;field_29060: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<CaveCarverConfig> NETHER_CAVE
      Mappings:
      Namespace Name Mixin selector
      official b Lcqy;b:Lcqy;
      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;
    • RAVINE

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

      public static final Carver<RavineCarverConfig> UNDERWATER_CANYON
      Mappings:
      Namespace Name Mixin selector
      official d Lcqy;d:Lcqy;
      intermediary field_33413 Lnet/minecraft/class_2939;field_33413: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<CaveCarverConfig> UNDERWATER_CAVE
      Mappings:
      Namespace Name Mixin selector
      official e Lcqy;e:Lcqy;
      intermediary field_33414 Lnet/minecraft/class_2939;field_33414:Lnet/minecraft/class_2939;
      named UNDERWATER_CAVE Lnet/minecraft/world/gen/carver/Carver;UNDERWATER_CAVE:Lnet/minecraft/world/gen/carver/Carver;
    • STONE_SOURCE

      protected static final BlockSource STONE_SOURCE
      Mappings:
      Namespace Name Mixin selector
      official f Lcqy;f:Lcpg;
      intermediary field_33614 Lnet/minecraft/class_2939;field_33614:Lnet/minecraft/class_5840;
      named STONE_SOURCE Lnet/minecraft/world/gen/carver/Carver;STONE_SOURCE:Lnet/minecraft/world/gen/BlockSource;
    • AIR

      protected static final BlockState AIR
      Mappings:
      Namespace Name Mixin selector
      official g Lcqy;g:Lcks;
      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 h Lcqy;h:Lcks;
      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 i Lcqy;i:Ldes;
      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 j Lcqy;j:Ldes;
      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 k Lcqy;k: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 l Lcqy;l: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 Lcqy;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;
  • Constructor Details

    • Carver

      public Carver(com.mojang.serialization.Codec<C> configCodec)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcqy;<init>(Lcom/mojang/serialization/Codec;)V
      intermediary <init> Lnet/minecraft/class_2939;<init>(Lcom/mojang/serialization/Codec;)V
      named <init> Lnet/minecraft/world/gen/carver/Carver;<init>(Lcom/mojang/serialization/Codec;)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 Lcqy;a(Ljava/lang/String;Lcqy;)Lcqy;
      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 Lcqy;a(Lcqp;)Lcqu;
      intermediary method_28614 Lnet/minecraft/class_2939;method_28614(Lnet/minecraft/class_5871;)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 Lcqy;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 Lcqy;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(CarverContext context, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, long seed, AquiferSampler sampler, double x, double y, double z, double horizontalScale, double verticalScale, BitSet carvingMask, Carver.SkipPredicate skipPredicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcqr;Lcqp;Lcml;Ljava/util/function/Function;JLcpf;DDDDDLjava/util/BitSet;Lcqy$a;)Z
      intermediary method_33978 Lnet/minecraft/class_2939;method_33978(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2791;Ljava/util/function/Function;JLnet/minecraft/class_6350;DDDDDLjava/util/BitSet;Lnet/minecraft/class_2939$class_5874;)Z
      named carveRegion Lnet/minecraft/world/gen/carver/Carver;carveRegion(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;JLnet/minecraft/world/gen/chunk/AquiferSampler;DDDDDLjava/util/BitSet;Lnet/minecraft/world/gen/carver/Carver$SkipPredicate;)Z
    • carveAtPoint

      protected boolean carveAtPoint(CarverContext context, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, BitSet carvingMask, Random random, BlockPos.Mutable pos, BlockPos.Mutable downPos, AquiferSampler sampler, MutableBoolean foundSurface)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcqr;Lcqp;Lcml;Ljava/util/function/Function;Ljava/util/BitSet;Ljava/util/Random;Lgg$a;Lgg$a;Lcpf;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Z
      intermediary method_16581 Lnet/minecraft/class_2939;method_16581(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;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_6350;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Z
      named carveAtPoint Lnet/minecraft/world/gen/carver/Carver;carveAtPoint(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;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/world/gen/chunk/AquiferSampler;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Z
    • getState

      @Nullable private @Nullable BlockState getState(CarverContext context, C config, BlockPos pos, AquiferSampler sampler)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcqr;Lcqp;Lgg;Lcpf;)Lcks;
      intermediary method_36418 Lnet/minecraft/class_2939;method_36418(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2338;Lnet/minecraft/class_6350;)Lnet/minecraft/class_2680;
      named getState Lnet/minecraft/world/gen/carver/Carver;getState(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/gen/chunk/AquiferSampler;)Lnet/minecraft/block/BlockState;
    • getDebugState

      private static BlockState getDebugState(CarverConfig config, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcqp;Lcks;)Lcks;
      intermediary method_36417 Lnet/minecraft/class_2939;method_36417(Lnet/minecraft/class_5871;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
      named getDebugState Lnet/minecraft/world/gen/carver/Carver;getDebugState(Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • carve

      public abstract boolean carve(CarverContext context, C config, Chunk chunk, Function<BlockPos,Biome> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, BitSet carvingMask)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcqr;Lcqp;Lcml;Ljava/util/function/Function;Ljava/util/Random;Lcpf;Lbvu;Ljava/util/BitSet;)Z
      intermediary method_12702 Lnet/minecraft/class_2939;method_12702(Lnet/minecraft/class_5873;Lnet/minecraft/class_5871;Lnet/minecraft/class_2791;Ljava/util/function/Function;Ljava/util/Random;Lnet/minecraft/class_6350;Lnet/minecraft/class_1923;Ljava/util/BitSet;)Z
      named carve Lnet/minecraft/world/gen/carver/Carver;carve(Lnet/minecraft/world/gen/carver/CarverContext;Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/world/chunk/Chunk;Ljava/util/function/Function;Ljava/util/Random;Lnet/minecraft/world/gen/chunk/AquiferSampler;Lnet/minecraft/util/math/ChunkPos;Ljava/util/BitSet;)Z
    • shouldCarve

      public abstract boolean shouldCarve(C config, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcqp;Ljava/util/Random;)Z
      intermediary method_12705 Lnet/minecraft/class_2939;method_12705(Lnet/minecraft/class_5871;Ljava/util/Random;)Z
      named shouldCarve Lnet/minecraft/world/gen/carver/Carver;shouldCarve(Lnet/minecraft/world/gen/carver/CarverConfig;Ljava/util/Random;)Z
    • canAlwaysCarveBlock

      protected boolean canAlwaysCarveBlock(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcks;)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 Lcqy;a(Lcks;Lcks;)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 minX, int maxX, int minY, int maxY, int minZ, int maxZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lcml;IIIIII)Z
      intermediary method_33977 Lnet/minecraft/class_2939;method_33977(Lnet/minecraft/class_2791;IIIIII)Z
      named isRegionUncarvable Lnet/minecraft/world/gen/carver/Carver;isRegionUncarvable(Lnet/minecraft/world/chunk/Chunk;IIIIII)Z
    • isOnBoundary

      private static boolean isOnBoundary(int x, int z, int minX, int maxX, int minZ, int maxZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;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 static boolean canCarveBranch(ChunkPos pos, double x, double z, int branchIndex, int branchCount, float baseWidth)
      Mappings:
      Namespace Name Mixin selector
      official a Lcqy;a(Lbvu;DDIIF)Z
      intermediary method_33976 Lnet/minecraft/class_2939;method_33976(Lnet/minecraft/class_1923;DDIIF)Z
      named canCarveBranch Lnet/minecraft/world/gen/carver/Carver;canCarveBranch(Lnet/minecraft/util/math/ChunkPos;DDIIF)Z
    • isDebug

      private static boolean isDebug(CarverConfig config)
      Mappings:
      Namespace Name Mixin selector
      official b Lcqy;b(Lcqp;)Z
      intermediary method_33980 Lnet/minecraft/class_2939;method_33980(Lnet/minecraft/class_5871;)Z
      named isDebug Lnet/minecraft/world/gen/carver/Carver;isDebug(Lnet/minecraft/world/gen/carver/CarverConfig;)Z