public interface Decoratable<R>
Modifier and Type | Method and Description |
---|---|
default R |
applyChance(int chance)
Applies the
minecraft:chance decorator, which only
allows positions with a 1 / count chance,
e.g. |
R |
decorate(ConfiguredDecorator<?> decorator) |
default R |
method_30377(int int2) |
default R |
repeat(int count)
Applies the
minecraft:count decorator, which repeats
the input positions count times. |
default R |
repeat(UniformIntDistribution count)
Applies the
minecraft:count decorator, which repeats
the input positions by the value of the count distribution. |
default R |
repeatRandomly(int maxCount)
Applies the
minecraft:count decorator, which repeats
the input positions by a random number between 0 and maxCount . |
default R |
spreadHorizontally()
Applies the
minecraft:square decorator, which spreads positions
horizontally a random amount between 0 and 15 blocks on both horizontal axes. |
R decorate(ConfiguredDecorator<?> decorator)
default R applyChance(int chance)
minecraft:chance
decorator, which only
allows positions with a 1 / count
chance,
e.g. a count of 2 would give approximately half of the input positions.default R repeat(UniformIntDistribution count)
minecraft:count
decorator, which repeats
the input positions by the value of the count
distribution.count
- the distribution of the repetition countdefault R repeat(int count)
minecraft:count
decorator, which repeats
the input positions count
times.count
- the repetition countdefault R repeatRandomly(int maxCount)
minecraft:count
decorator, which repeats
the input positions by a random number between 0 and maxCount
.maxCount
- the maximum repetition countdefault R method_30377(int int2)
default R spreadHorizontally()
minecraft:square
decorator, which spreads positions
horizontally a random amount between 0 and 15 blocks on both horizontal axes.