Class TreeDecorator.Generator

java.lang.Object
net.minecraft.world.gen.treedecorator.TreeDecorator.Generator
Enclosing class:
TreeDecorator

public static final class TreeDecorator.Generator extends Object
Mappings:
Namespace Name
official dwq$a
intermediary net/minecraft/class_4662$class_7402
named net/minecraft/world/gen/treedecorator/TreeDecorator$Generator
  • Field Details

    • world

      private final TestableWorld world
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq$a;a:Lctv;
      intermediary field_38872 Lnet/minecraft/class_4662$class_7402;field_38872:Lnet/minecraft/class_3746;
      named world Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;world:Lnet/minecraft/world/TestableWorld;
    • replacer

      private final BiConsumer<BlockPos,BlockState> replacer
      Mappings:
      Namespace Name Mixin selector
      official b Ldwq$a;b:Ljava/util/function/BiConsumer;
      intermediary field_38873 Lnet/minecraft/class_4662$class_7402;field_38873:Ljava/util/function/BiConsumer;
      named replacer Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;replacer:Ljava/util/function/BiConsumer;
    • random

      private final Random random
      Mappings:
      Namespace Name Mixin selector
      official c Ldwq$a;c:Lauv;
      intermediary field_38874 Lnet/minecraft/class_4662$class_7402;field_38874:Lnet/minecraft/class_5819;
      named random Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;random:Lnet/minecraft/util/math/random/Random;
    • logPositions

      private final ObjectArrayList<BlockPos> logPositions
      Mappings:
      Namespace Name Mixin selector
      official d Ldwq$a;d:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary field_38875 Lnet/minecraft/class_4662$class_7402;field_38875:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      named logPositions Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;logPositions:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • leavesPositions

      private final ObjectArrayList<BlockPos> leavesPositions
      Mappings:
      Namespace Name Mixin selector
      official e Ldwq$a;e:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary field_38876 Lnet/minecraft/class_4662$class_7402;field_38876:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      named leavesPositions Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;leavesPositions:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • rootPositions

      private final ObjectArrayList<BlockPos> rootPositions
      Mappings:
      Namespace Name Mixin selector
      official f Ldwq$a;f:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary field_38877 Lnet/minecraft/class_4662$class_7402;field_38877:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      named rootPositions Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;rootPositions:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
  • Constructor Details

    • Generator

      public Generator(TestableWorld world, BiConsumer<BlockPos,BlockState> replacer, Random random, Set<BlockPos> logPositions, Set<BlockPos> leavesPositions, Set<BlockPos> rootPositions)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldwq$a;<init>(Lctv;Ljava/util/function/BiConsumer;Lauv;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)V
      intermediary <init> Lnet/minecraft/class_4662$class_7402;<init>(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Lnet/minecraft/class_5819;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)V
      named <init> Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;<init>(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/random/Random;Ljava/util/Set;Ljava/util/Set;Ljava/util/Set;)V
  • Method Details

    • replaceWithVine

      public void replaceWithVine(BlockPos pos, BooleanProperty faceProperty)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq$a;a(Lhx;Ldjy;)V
      intermediary method_43319 Lnet/minecraft/class_4662$class_7402;method_43319(Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;)V
      named replaceWithVine Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;replaceWithVine(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/state/property/BooleanProperty;)V
    • replace

      public void replace(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq$a;a(Lhx;Ldjh;)V
      intermediary method_43318 Lnet/minecraft/class_4662$class_7402;method_43318(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named replace Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;replace(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • isAir

      public boolean isAir(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq$a;a(Lhx;)Z
      intermediary method_43317 Lnet/minecraft/class_4662$class_7402;method_43317(Lnet/minecraft/class_2338;)Z
      named isAir Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;isAir(Lnet/minecraft/util/math/BlockPos;)Z
    • getWorld

      public TestableWorld getWorld()
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq$a;a()Lctv;
      intermediary method_43316 Lnet/minecraft/class_4662$class_7402;method_43316()Lnet/minecraft/class_3746;
      named getWorld Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;getWorld()Lnet/minecraft/world/TestableWorld;
    • getRandom

      public Random getRandom()
      Mappings:
      Namespace Name Mixin selector
      official b Ldwq$a;b()Lauv;
      intermediary method_43320 Lnet/minecraft/class_4662$class_7402;method_43320()Lnet/minecraft/class_5819;
      named getRandom Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;getRandom()Lnet/minecraft/util/math/random/Random;
    • getLogPositions

      public ObjectArrayList<BlockPos> getLogPositions()
      Mappings:
      Namespace Name Mixin selector
      official c Ldwq$a;c()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary method_43321 Lnet/minecraft/class_4662$class_7402;method_43321()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      named getLogPositions Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;getLogPositions()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • getLeavesPositions

      public ObjectArrayList<BlockPos> getLeavesPositions()
      Mappings:
      Namespace Name Mixin selector
      official d Ldwq$a;d()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary method_43322 Lnet/minecraft/class_4662$class_7402;method_43322()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      named getLeavesPositions Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;getLeavesPositions()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
    • getRootPositions

      public ObjectArrayList<BlockPos> getRootPositions()
      Mappings:
      Namespace Name Mixin selector
      official e Ldwq$a;e()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      intermediary method_43323 Lnet/minecraft/class_4662$class_7402;method_43323()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
      named getRootPositions Lnet/minecraft/world/gen/treedecorator/TreeDecorator$Generator;getRootPositions()Lit/unimi/dsi/fastutil/objects/ObjectArrayList;