Add waterlogging support for Botania blocks. (#3243)

* Waterlog all the things.

* Header

* Linting and friends.

* Remove waterlogging for Manatide Bellows and Petal Apothecaries

* Blank line.
This commit is contained in:
Eutro authored and GitHub committed 2020-05-21 16:01:18 -05:00
1 parent aa5a74c746
commit 6a7da67f96
48 files changed
+256 -83

No files matched your search

@@ -36,7 +36,7 @@ import javax.annotation.Nonnull;
import java.util.Random;
public class BlockLightRelay extends BlockMod implements IWandable {
public class BlockLightRelay extends BlockModWaterloggable implements IWandable {
private static final VoxelShape SHAPE = makeCuboidShape(5, 5, 5, 11, 11, 11);
public final LuminizerVariant variant;
@@ -44,7 +44,7 @@ public class BlockLightRelay extends BlockMod implements IWandable {
protected BlockLightRelay(LuminizerVariant variant, Properties builder) {
super(builder);
this.variant = variant;
setDefaultState(stateContainer.getBaseState().with(BlockStateProperties.POWERED, false));
setDefaultState(getDefaultState().with(BlockStateProperties.POWERED, false));
}
@Nonnull
@@ -55,6 +55,7 @@ public class BlockLightRelay extends BlockMod implements IWandable {
@Override
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder) {
super.fillStateContainer(builder);
builder.add(BlockStateProperties.POWERED);
}