From 7a3a3e0afbf31cda9883374a8d9cfa30ccb696b4 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 25 Nov 2022 14:07:47 +0100 Subject: [PATCH] Backward Compat --- .../levelgen/features/BCLFeatureBuilder.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/main/java/org/betterx/bclib/api/v3/levelgen/features/BCLFeatureBuilder.java b/src/main/java/org/betterx/bclib/api/v3/levelgen/features/BCLFeatureBuilder.java index cbcc7349..37ae4440 100644 --- a/src/main/java/org/betterx/bclib/api/v3/levelgen/features/BCLFeatureBuilder.java +++ b/src/main/java/org/betterx/bclib/api/v3/levelgen/features/BCLFeatureBuilder.java @@ -889,6 +889,33 @@ public abstract class BCLFeatureBuilder, FC extends Featur public SimpleBlockConfiguration createConfiguration() { return new SimpleBlockConfiguration(new WeightedStateProvider(stateBuilder.build())); } + + //TODO: Remove in the next Minor Update. This method is just for backward compatibility. + + @Override + public WeightedBlock add(Block block, int weight) { + return super.add(block, weight); + } + + //TODO: Remove in the next Minor Update. This method is just for backward compatibility. + @Override + public WeightedBlock add(BlockState state, int weight) { + return super.add(state, weight); + } + + //TODO: Remove in the next Minor Update. This method is just for backward compatibility. + + @Override + public WeightedBlock addAllStates(Block block, int weight) { + return super.addAllStates(block, weight); + } + + //TODO: Remove in the next Minor Update. This method is just for backward compatibility. + + @Override + public WeightedBlock addAllStatesFor(IntegerProperty prop, Block block, int weight) { + return super.addAllStatesFor(prop, block, weight); + } }