public class ConfiguredDecorator<DC extends DecoratorConfig> extends Object implements Decoratable<ConfiguredDecorator<?>>
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<ConfiguredDecorator<?>> |
CODEC |
private DC |
config |
private Decorator<DC> |
decorator |
Constructor and Description |
---|
ConfiguredDecorator(Decorator<DC> decorator,
DC config) |
Modifier and Type | Method and Description |
---|---|
ConfiguredDecorator<?> |
decorate(ConfiguredDecorator<?> configuredDecorator) |
DC |
getConfig() |
Stream<BlockPos> |
getPositions(DecoratorContext context,
Random random,
BlockPos pos) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
applyChance, method_30377, repeat, repeat, repeatRandomly, spreadHorizontally
public static final com.mojang.serialization.Codec<ConfiguredDecorator<?>> CODEC
private final Decorator<DC extends DecoratorConfig> decorator
private final DC extends DecoratorConfig config
public Stream<BlockPos> getPositions(DecoratorContext context, Random random, BlockPos pos)
public ConfiguredDecorator<?> decorate(ConfiguredDecorator<?> configuredDecorator)
decorate
in interface Decoratable<ConfiguredDecorator<?>>
public DC getConfig()