接口 Decoratable<R>
-
- 所有已知实现类:
ConfiguredDecorator,ConfiguredFeature
public interface Decoratable<R>- Mappings:
Namespace Name official cojintermediary net/minecraft/class_5432named net/minecraft/world/gen/decorator/Decoratable
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 default RapplyChance(int chance)Applies theminecraft:chancedecorator, which only allows positions with a1 / countchance, e.g. a count of 2 would give approximately half of the input positions.default RaverageDepth(YOffset baseline, int spread)Rdecorate(ConfiguredDecorator<?> decorator)default Rrange(RangeDecoratorConfig config)default RrangeOf(YOffset bottom, YOffset top)default Rrepeat(int count)Applies theminecraft:countdecorator, which repeats the input positionscounttimes.default Rrepeat(IntProvider count)Applies theminecraft:countdecorator, which repeats the input positions by the value of thecountdistribution.default RrepeatRandomly(int maxCount)Applies theminecraft:countdecorator, which repeats the input positions by a random number between 0 andmaxCount.default RspreadHorizontally()Applies theminecraft:squaredecorator, which spreads positions horizontally a random amount between 0 and 15 blocks on both horizontal axes.
-
-
-
方法详细资料
-
decorate
R decorate(ConfiguredDecorator<?> decorator)
- Mappings:
Namespace Name Mixin selector official aLcoj;a(Lcyk;)Ljava/lang/Object;intermediary method_30374Lnet/minecraft/class_5432;method_30374(Lnet/minecraft/class_3243;)Ljava/lang/Object;named decorateLnet/minecraft/world/gen/decorator/Decoratable;decorate(Lnet/minecraft/world/gen/decorator/ConfiguredDecorator;)Ljava/lang/Object;
-
applyChance
default R applyChance(int chance)
Applies theminecraft:chancedecorator, which only allows positions with a1 / countchance, e.g. a count of 2 would give approximately half of the input positions.- Mappings:
Namespace Name Mixin selector official aLcoj;a(I)Ljava/lang/Object;intermediary method_30372Lnet/minecraft/class_5432;method_30372(I)Ljava/lang/Object;named applyChanceLnet/minecraft/world/gen/decorator/Decoratable;applyChance(I)Ljava/lang/Object;
-
repeat
default R repeat(IntProvider count)
Applies theminecraft:countdecorator, which repeats the input positions by the value of thecountdistribution.- 参数:
count- the distribution of the repetition count- Mappings:
Namespace Name Mixin selector official aLcoj;a(Laqo;)Ljava/lang/Object;intermediary method_30373Lnet/minecraft/class_5432;method_30373(Lnet/minecraft/class_6017;)Ljava/lang/Object;named repeatLnet/minecraft/world/gen/decorator/Decoratable;repeat(Lnet/minecraft/util/math/intprovider/IntProvider;)Ljava/lang/Object;
-
repeat
default R repeat(int count)
Applies theminecraft:countdecorator, which repeats the input positionscounttimes.- 参数:
count- the repetition count- Mappings:
Namespace Name Mixin selector official bLcoj;b(I)Ljava/lang/Object;intermediary method_30375Lnet/minecraft/class_5432;method_30375(I)Ljava/lang/Object;named repeatLnet/minecraft/world/gen/decorator/Decoratable;repeat(I)Ljava/lang/Object;
-
repeatRandomly
default R repeatRandomly(int maxCount)
Applies theminecraft:countdecorator, which repeats the input positions by a random number between 0 andmaxCount.- 参数:
maxCount- the maximum repetition count- Mappings:
Namespace Name Mixin selector official cLcoj;c(I)Ljava/lang/Object;intermediary method_30376Lnet/minecraft/class_5432;method_30376(I)Ljava/lang/Object;named repeatRandomlyLnet/minecraft/world/gen/decorator/Decoratable;repeatRandomly(I)Ljava/lang/Object;
-
rangeOf
default R rangeOf(YOffset bottom, YOffset top)
- Mappings:
Namespace Name Mixin selector official aLcoj;a(Lcpe;Lcpe;)Ljava/lang/Object;intermediary method_30377Lnet/minecraft/class_5432;method_30377(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Ljava/lang/Object;named rangeOfLnet/minecraft/world/gen/decorator/Decoratable;rangeOf(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Ljava/lang/Object;
-
range
default R range(RangeDecoratorConfig config)
- Mappings:
Namespace Name Mixin selector official aLcoj;a(Lcuv;)Ljava/lang/Object;intermediary method_33838Lnet/minecraft/class_5432;method_33838(Lnet/minecraft/class_2997;)Ljava/lang/Object;named rangeLnet/minecraft/world/gen/decorator/Decoratable;range(Lnet/minecraft/world/gen/decorator/RangeDecoratorConfig;)Ljava/lang/Object;
-
spreadHorizontally
default R spreadHorizontally()
Applies theminecraft:squaredecorator, which spreads positions horizontally a random amount between 0 and 15 blocks on both horizontal axes.- Mappings:
Namespace Name Mixin selector official aLcoj;a()Ljava/lang/Object;intermediary method_30371Lnet/minecraft/class_5432;method_30371()Ljava/lang/Object;named spreadHorizontallyLnet/minecraft/world/gen/decorator/Decoratable;spreadHorizontally()Ljava/lang/Object;
-
averageDepth
default R averageDepth(YOffset baseline, int spread)
- Mappings:
Namespace Name Mixin selector official aLcoj;a(Lcpe;I)Ljava/lang/Object;intermediary method_33837Lnet/minecraft/class_5432;method_33837(Lnet/minecraft/class_5843;I)Ljava/lang/Object;named averageDepthLnet/minecraft/world/gen/decorator/Decoratable;averageDepth(Lnet/minecraft/world/gen/YOffset;I)Ljava/lang/Object;
-
-