类 TreeDecorator
- java.lang.Object
-
- net.minecraft.world.gen.treedecorator.TreeDecorator
-
- 直接已知子类:
AlterGroundTreeDecorator,BeehiveTreeDecorator,CocoaBeansTreeDecorator,LeavesVineTreeDecorator,TrunkVineTreeDecorator
public abstract class TreeDecorator extends Object
Tree decorators can add additional blocks to trees, such as vines or beehives.- Mappings:
Namespace Name official cxdintermediary net/minecraft/class_4662named net/minecraft/world/gen/treedecorator/TreeDecorator
-
-
字段概要
字段 修饰符和类型 字段 说明 static com.mojang.serialization.Codec<TreeDecorator>TYPE_CODEC
-
构造器概要
构造器 构造器 说明 TreeDecorator()
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract voidgenerate(TestableWorld testableWorld, BiConsumer<BlockPos,BlockState> biConsumer, Random random, List<BlockPos> leavesPositions, List<BlockPos> list)protected abstract TreeDecoratorType<?>getType()protected static voidplaceVine(BiConsumer<BlockPos,BlockState> biConsumer, BlockPos blockPos, BooleanProperty booleanProperty)
-
-
-
字段详细资料
-
TYPE_CODEC
public static final com.mojang.serialization.Codec<TreeDecorator> TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official cLcxd;c:Lcom/mojang/serialization/Codec;intermediary field_24962Lnet/minecraft/class_4662;field_24962:Lcom/mojang/serialization/Codec;named TYPE_CODECLnet/minecraft/world/gen/treedecorator/TreeDecorator;TYPE_CODEC:Lcom/mojang/serialization/Codec;
-
-
方法详细资料
-
getType
protected abstract TreeDecoratorType<?> getType()
- Mappings:
Namespace Name Mixin selector official aLcxd;a()Lcxe;intermediary method_28893Lnet/minecraft/class_4662;method_28893()Lnet/minecraft/class_4663;named getTypeLnet/minecraft/world/gen/treedecorator/TreeDecorator;getType()Lnet/minecraft/world/gen/treedecorator/TreeDecoratorType;
-
generate
public abstract void generate(TestableWorld testableWorld, BiConsumer<BlockPos,BlockState> biConsumer, Random random, List<BlockPos> leavesPositions, List<BlockPos> list)
- Mappings:
Namespace Name Mixin selector official aLcxd;a(Lbvx;Ljava/util/function/BiConsumer;Ljava/util/Random;Ljava/util/List;Ljava/util/List;)Vintermediary method_23469Lnet/minecraft/class_4662;method_23469(Lnet/minecraft/class_3746;Ljava/util/function/BiConsumer;Ljava/util/Random;Ljava/util/List;Ljava/util/List;)Vnamed generateLnet/minecraft/world/gen/treedecorator/TreeDecorator;generate(Lnet/minecraft/world/TestableWorld;Ljava/util/function/BiConsumer;Ljava/util/Random;Ljava/util/List;Ljava/util/List;)V
-
placeVine
protected static void placeVine(BiConsumer<BlockPos,BlockState> biConsumer, BlockPos blockPos, BooleanProperty booleanProperty)
- Mappings:
Namespace Name Mixin selector official aLcxd;a(Ljava/util/function/BiConsumer;Lgb;Lcki;)Vintermediary method_23471Lnet/minecraft/class_4662;method_23471(Ljava/util/function/BiConsumer;Lnet/minecraft/class_2338;Lnet/minecraft/class_2746;)Vnamed placeVineLnet/minecraft/world/gen/treedecorator/TreeDecorator;placeVine(Ljava/util/function/BiConsumer;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/state/property/BooleanProperty;)V
-
-