2020-10-24 15:58:38 +02:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
2021-12-04 15:40:09 +01:00
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityWeatherChanger;
|
2020-10-24 17:14:09 +02:00
|
|
|
import de.ellpeck.naturesaura.data.BlockStateGenerator;
|
|
|
|
import de.ellpeck.naturesaura.reg.ICustomBlockState;
|
2021-12-15 16:24:53 +01:00
|
|
|
import net.minecraft.world.level.block.Blocks;
|
2020-10-24 15:58:38 +02:00
|
|
|
|
2020-10-24 17:14:09 +02:00
|
|
|
public class BlockWeatherChanger extends BlockContainerImpl implements ICustomBlockState {
|
2021-12-15 16:24:53 +01:00
|
|
|
|
2020-10-24 15:58:38 +02:00
|
|
|
public BlockWeatherChanger() {
|
2021-12-15 16:24:53 +01:00
|
|
|
super("weather_changer", BlockEntityWeatherChanger::new, Properties.copy(Blocks.STONE_BRICKS));
|
2020-10-24 15:58:38 +02:00
|
|
|
}
|
2020-10-24 17:14:09 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void generateCustomBlockState(BlockStateGenerator generator) {
|
|
|
|
generator.simpleBlock(this, generator.models().cubeBottomTop(this.getBaseName(),
|
|
|
|
generator.modLoc("block/" + this.getBaseName()),
|
|
|
|
generator.modLoc("block/" + this.getBaseName() + "_bottom"),
|
|
|
|
generator.modLoc("block/" + this.getBaseName() + "_top")));
|
|
|
|
}
|
2020-10-24 15:58:38 +02:00
|
|
|
}
|