2020-05-04 23:39:57 +02:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
2021-12-04 15:40:09 +01:00
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityChorusGenerator;
|
2020-05-04 23:39:57 +02:00
|
|
|
import de.ellpeck.naturesaura.data.BlockStateGenerator;
|
|
|
|
import de.ellpeck.naturesaura.reg.ICustomBlockState;
|
2021-12-15 14:26:42 +01:00
|
|
|
import net.minecraft.world.level.block.Blocks;
|
2020-05-04 23:39:57 +02:00
|
|
|
|
|
|
|
public class BlockChorusGenerator extends BlockContainerImpl implements ICustomBlockState {
|
2021-12-15 14:26:42 +01:00
|
|
|
|
2020-05-04 23:39:57 +02:00
|
|
|
public BlockChorusGenerator() {
|
2021-12-15 14:26:42 +01:00
|
|
|
super("chorus_generator", BlockEntityChorusGenerator::new, Properties.copy(Blocks.END_STONE));
|
2020-05-04 23:39:57 +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()),
|
|
|
|
generator.modLoc("block/" + this.getBaseName() + "_top")));
|
|
|
|
}
|
|
|
|
}
|