NaturesAura/src/main/java/de/ellpeck/naturesaura/blocks/BlockPotionGenerator.java

22 lines
925 B
Java
Raw Normal View History

package de.ellpeck.naturesaura.blocks;
2021-12-04 15:40:09 +01:00
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityPotionGenerator;
2020-01-29 01:34:58 +01: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.material.Material;
2020-01-29 01:34:58 +01:00
public class BlockPotionGenerator extends BlockContainerImpl implements ICustomBlockState {
2021-12-15 16:24:53 +01:00
public BlockPotionGenerator() {
2021-12-19 15:32:45 +01:00
super("potion_generator", BlockEntityPotionGenerator.class, Properties.of(Material.STONE).strength(5F));
}
2020-01-29 01:34:58 +01: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")));
}
}