java.lang.Object
net.minecraft.world.gen.foliage.FoliagePlacer
pers.saikel0rado1iu.spontaneousreplace.terriforest.world.gen.foliage.TreacherousFoliagePlacer

public class TreacherousFoliagePlacer extends net.minecraft.world.gen.foliage.FoliagePlacer

诡谲木树叶放置器

诡谲木地物的树叶放置器,用于生成诡谲木瓶口处的藤蔓
从以下版本开始:
1.0.0
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.world.gen.foliage.FoliagePlacer

    net.minecraft.world.gen.foliage.FoliagePlacer.BlockPlacer, net.minecraft.world.gen.foliage.FoliagePlacer.TreeNode
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final com.mojang.serialization.MapCodec<TreacherousFoliagePlacer>
     

    从类继承的字段 net.minecraft.world.gen.foliage.FoliagePlacer

    offset, radius, TYPE_CODEC
  • 构造器概要

    构造器
    构造器
    说明
    TreacherousFoliagePlacer(net.minecraft.util.math.intprovider.IntProvider radius, net.minecraft.util.math.intprovider.IntProvider offset)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    generate(net.minecraft.world.TestableWorld world, net.minecraft.world.gen.foliage.FoliagePlacer.BlockPlacer placer, net.minecraft.util.math.random.Random random, net.minecraft.world.gen.feature.TreeFeatureConfig config, int trunkHeight, net.minecraft.world.gen.foliage.FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset)
     
    int
    getRandomHeight(net.minecraft.util.math.random.Random random, int trunkHeight, net.minecraft.world.gen.feature.TreeFeatureConfig config)
     
    protected net.minecraft.world.gen.foliage.FoliagePlacerType<?>
     
    protected boolean
    isInvalidForLeaves(net.minecraft.util.math.random.Random random, int dx, int y, int dz, int radius, boolean giantTrunk)
     

    从类继承的方法 net.minecraft.world.gen.foliage.FoliagePlacer

    fillFoliagePlacerFields, generate, generateSquare, generateSquareWithHangingLeaves, getRandomRadius, isPositionInvalid, placeFoliageBlock

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

  • 构造器详细资料

    • TreacherousFoliagePlacer

      public TreacherousFoliagePlacer(net.minecraft.util.math.intprovider.IntProvider radius, net.minecraft.util.math.intprovider.IntProvider offset)
  • 方法详细资料

    • generate

      protected void generate(net.minecraft.world.TestableWorld world, net.minecraft.world.gen.foliage.FoliagePlacer.BlockPlacer placer, net.minecraft.util.math.random.Random random, net.minecraft.world.gen.feature.TreeFeatureConfig config, int trunkHeight, net.minecraft.world.gen.foliage.FoliagePlacer.TreeNode treeNode, int foliageHeight, int radius, int offset)
      指定者:
      generate 在类中 net.minecraft.world.gen.foliage.FoliagePlacer
    • getRandomHeight

      public int getRandomHeight(net.minecraft.util.math.random.Random random, int trunkHeight, net.minecraft.world.gen.feature.TreeFeatureConfig config)
      指定者:
      getRandomHeight 在类中 net.minecraft.world.gen.foliage.FoliagePlacer
    • isInvalidForLeaves

      protected boolean isInvalidForLeaves(net.minecraft.util.math.random.Random random, int dx, int y, int dz, int radius, boolean giantTrunk)
      指定者:
      isInvalidForLeaves 在类中 net.minecraft.world.gen.foliage.FoliagePlacer
    • getType

      protected net.minecraft.world.gen.foliage.FoliagePlacerType<?> getType()
      指定者:
      getType 在类中 net.minecraft.world.gen.foliage.FoliagePlacer