Interface Decoratable<R>
- All Known Implementing Classes:
ConfiguredDecorator,ConfiguredFeature
public interface Decoratable<R>
- Mappings:
Namespace Name official crsintermediary net/minecraft/class_5432named net/minecraft/world/gen/decorator/Decoratable
-
Method Summary
Modifier and TypeMethodDescriptiondefault RapplyBlockFilter(BlockPredicate predicate) Applies theblock_filterdecorator, which will only generate a feature if a given predicate matches.default RapplyChance(int chance) Applies theminecraft:chancedecorator, which only allows positions with a1 / countchance, e.g.decorate(ConfiguredDecorator<?> decorator) default RApplies theblock_filterdecorator, configured so the feature can only generate if it is in air.default Rrange(RangeDecoratorConfig config) 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 RApplies theminecraft:squaredecorator, which spreads positions horizontally a random amount between 0 and 15 blocks on both horizontal axes.default RtriangleRange(YOffset min, YOffset max) default RuniformRange(YOffset min, YOffset max) default RwouldSurvive(Block block) Applies theblock_filterdecorator, configured so that the feature will only generate if a given block could be placed at its location.
-
Method Details
-
decorate
- Mappings:
Namespace Name Mixin selector official aLcrs;a(Ldcq;)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
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 aLcrs;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
Applies theminecraft:countdecorator, which repeats the input positions by the value of thecountdistribution.- Parameters:
count- the distribution of the repetition count- Mappings:
Namespace Name Mixin selector official aLcrs;a(Latu;)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
Applies theminecraft:countdecorator, which repeats the input positionscounttimes.- Parameters:
count- the repetition count- Mappings:
Namespace Name Mixin selector official bLcrs;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
Applies theminecraft:countdecorator, which repeats the input positions by a random number between 0 andmaxCount.- Parameters:
maxCount- the maximum repetition count- Mappings:
Namespace Name Mixin selector official cLcrs;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;
-
uniformRange
- Parameters:
min- the minimum offset, inclusivemax- the maximum offset, inclusive- Mappings:
Namespace Name Mixin selector official aLcrs;a(Lcsu;Lcsu;)Ljava/lang/Object;intermediary method_36296Lnet/minecraft/class_5432;method_36296(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Ljava/lang/Object;named uniformRangeLnet/minecraft/world/gen/decorator/Decoratable;uniformRange(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Ljava/lang/Object;
-
triangleRange
- Parameters:
min- the minimum offset, inclusivemax- the maximum offset, inclusive- Mappings:
Namespace Name Mixin selector official bLcrs;b(Lcsu;Lcsu;)Ljava/lang/Object;intermediary method_36297Lnet/minecraft/class_5432;method_36297(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Ljava/lang/Object;named triangleRangeLnet/minecraft/world/gen/decorator/Decoratable;triangleRange(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Ljava/lang/Object;
-
range
- Mappings:
Namespace Name Mixin selector official aLcrs;a(Lcyu;)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
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 aLcrs;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;
-
wouldSurvive
Applies theblock_filterdecorator, configured so that the feature will only generate if a given block could be placed at its location.- Parameters:
block- the block to check for- Mappings:
Namespace Name Mixin selector official aLcrs;a(Lcbv;)Ljava/lang/Object;intermediary method_38670Lnet/minecraft/class_5432;method_38670(Lnet/minecraft/class_2248;)Ljava/lang/Object;named wouldSurviveLnet/minecraft/world/gen/decorator/Decoratable;wouldSurvive(Lnet/minecraft/block/Block;)Ljava/lang/Object;
-
onlyInAir
Applies theblock_filterdecorator, configured so the feature can only generate if it is in air.- Mappings:
Namespace Name Mixin selector official bLcrs;b()Ljava/lang/Object;intermediary method_38872Lnet/minecraft/class_5432;method_38872()Ljava/lang/Object;named onlyInAirLnet/minecraft/world/gen/decorator/Decoratable;onlyInAir()Ljava/lang/Object;
-
applyBlockFilter
Applies theblock_filterdecorator, which will only generate a feature if a given predicate matches.- Parameters:
predicate- the block predicate that has to match for the feature to generate- Mappings:
Namespace Name Mixin selector official aLcrs;a(Lctg;)Ljava/lang/Object;intermediary method_38994Lnet/minecraft/class_5432;method_38994(Lnet/minecraft/class_6646;)Ljava/lang/Object;named applyBlockFilterLnet/minecraft/world/gen/decorator/Decoratable;applyBlockFilter(Lnet/minecraft/world/gen/blockpredicate/BlockPredicate;)Ljava/lang/Object;
-