2018-10-28 13:46:09 +01:00
|
|
|
package de.ellpeck.naturesaura.blocks;
|
|
|
|
|
2020-01-22 01:32:26 +01:00
|
|
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityPotionGenerator;
|
2020-01-29 01:34:58 +01:00
|
|
|
import de.ellpeck.naturesaura.data.BlockStateGenerator;
|
|
|
|
import de.ellpeck.naturesaura.reg.ICustomBlockState;
|
2018-10-28 13:46:09 +01:00
|
|
|
import net.minecraft.block.material.Material;
|
2019-11-04 19:08:49 +01:00
|
|
|
import net.minecraftforge.common.ToolType;
|
2018-10-28 13:46:09 +01:00
|
|
|
|
2020-01-29 01:34:58 +01:00
|
|
|
public class BlockPotionGenerator extends BlockContainerImpl implements ICustomBlockState {
|
2018-10-28 13:46:09 +01:00
|
|
|
public BlockPotionGenerator() {
|
2020-10-17 21:13:45 +02:00
|
|
|
super("potion_generator", TileEntityPotionGenerator::new, Properties.create(Material.ROCK).hardnessAndResistance(5F).harvestTool(ToolType.PICKAXE).harvestLevel(1));
|
2018-10-28 13:46:09 +01:00
|
|
|
}
|
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")));
|
|
|
|
}
|
2018-10-28 13:46:09 +01:00
|
|
|
}
|