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

    • CAVE

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

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

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

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

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

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

      protected static final FluidState LAVA
      Mappings:
      Namespace Name Mixin selector
      named LAVA Lnet/minecraft/world/gen/carver/Carver;LAVA:Lnet/minecraft/fluid/FluidState;
      intermediary field_13296 Lnet/minecraft/class_2939;field_13296:Lnet/minecraft/class_3610;
      official g Leam;g:Leoj;
    • carvableFluids

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

      private final com.mojang.serialization.MapCodec<ConfiguredCarver<C extends CarverConfig>> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/world/gen/carver/Carver;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_24831 Lnet/minecraft/class_2939;field_24831:Lcom/mojang/serialization/MapCodec;
      official i Leam;i:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

    • Carver

      public Carver(com.mojang.serialization.Codec<C> configCodec)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/carver/Carver;<init>(Lcom/mojang/serialization/Codec;)V
      intermediary <init> Lnet/minecraft/class_2939;<init>(Lcom/mojang/serialization/Codec;)V
      official <init> Leam;<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
      named register Lnet/minecraft/world/gen/carver/Carver;register(Ljava/lang/String;Lnet/minecraft/world/gen/carver/Carver;)Lnet/minecraft/world/gen/carver/Carver;
      intermediary method_12704 Lnet/minecraft/class_2939;method_12704(Ljava/lang/String;Lnet/minecraft/class_2939;)Lnet/minecraft/class_2939;
      official a Leam;a(Ljava/lang/String;Leam;)Leam;
    • configure

      public ConfiguredCarver<C> configure(C config)
      Mappings:
      Namespace Name Mixin selector
      named configure Lnet/minecraft/world/gen/carver/Carver;configure(Lnet/minecraft/world/gen/carver/CarverConfig;)Lnet/minecraft/world/gen/carver/ConfiguredCarver;
      intermediary method_28614 Lnet/minecraft/class_2939;method_28614(Lnet/minecraft/class_5871;)Lnet/minecraft/class_2922;
      official a Leam;a(Leaf;)Leak;
    • getCodec

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

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

      protected boolean carveRegion(CarverContext context, C config, Chunk chunk, Function<BlockPos,RegistryEntry<Biome>> posToBiome, AquiferSampler aquiferSampler, double x, double y, double z, double width, double height, CarvingMask mask, Carver.SkipPredicate skipPredicate)
      Mappings:
      Namespace Name Mixin selector
      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;Lnet/minecraft/world/gen/chunk/AquiferSampler;DDDDDLnet/minecraft/world/gen/carver/CarvingMask;Lnet/minecraft/world/gen/carver/Carver$SkipPredicate;)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;Lnet/minecraft/class_6350;DDDDDLnet/minecraft/class_6643;Lnet/minecraft/class_2939$class_5874;)Z
      official a Leam;a(Leah;Leaf;Lduh;Ljava/util/function/Function;Ldxs;DDDDDLdug;Leam$a;)Z
    • carveAtPoint

      protected boolean carveAtPoint(CarverContext context, C config, Chunk chunk, Function<BlockPos,RegistryEntry<Biome>> posToBiome, CarvingMask mask, BlockPos.Mutable pos, BlockPos.Mutable tmp, AquiferSampler aquiferSampler, MutableBoolean replacedGrassy)
      Mappings:
      Namespace Name Mixin selector
      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;Lnet/minecraft/world/gen/carver/CarvingMask;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
      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;Lnet/minecraft/class_6643;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_6350;Lorg/apache/commons/lang3/mutable/MutableBoolean;)Z
      official a Leam;a(Leah;Leaf;Lduh;Ljava/util/function/Function;Ldug;Lja$a;Lja$a;Ldxs;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
      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;
      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;
      official a Leam;a(Leah;Leaf;Lja;Ldxs;)Ldsl;
    • getDebugState

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

      public abstract boolean carve(CarverContext context, C config, Chunk chunk, Function<BlockPos,RegistryEntry<Biome>> posToBiome, Random random, AquiferSampler aquiferSampler, ChunkPos pos, CarvingMask mask)
      Mappings:
      Namespace Name Mixin selector
      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;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/gen/chunk/AquiferSampler;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/gen/carver/CarvingMask;)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;Lnet/minecraft/class_5819;Lnet/minecraft/class_6350;Lnet/minecraft/class_1923;Lnet/minecraft/class_6643;)Z
      official a Leam;a(Leah;Leaf;Lduh;Ljava/util/function/Function;Layo;Ldxs;Ldbn;Ldug;)Z
    • shouldCarve

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

      protected boolean canAlwaysCarveBlock(C config, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named canAlwaysCarveBlock Lnet/minecraft/world/gen/carver/Carver;canAlwaysCarveBlock(Lnet/minecraft/world/gen/carver/CarverConfig;Lnet/minecraft/block/BlockState;)Z
      intermediary method_12709 Lnet/minecraft/class_2939;method_12709(Lnet/minecraft/class_5871;Lnet/minecraft/class_2680;)Z
      official a Leam;a(Leaf;Ldsl;)Z
    • canCarveBranch

      protected static boolean canCarveBranch(ChunkPos pos, double x, double z, int branchIndex, int branchCount, float baseWidth)
      Mappings:
      Namespace Name Mixin selector
      named canCarveBranch Lnet/minecraft/world/gen/carver/Carver;canCarveBranch(Lnet/minecraft/util/math/ChunkPos;DDIIF)Z
      intermediary method_33976 Lnet/minecraft/class_2939;method_33976(Lnet/minecraft/class_1923;DDIIF)Z
      official a Leam;a(Ldbn;DDIIF)Z
    • isDebug

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