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

22 lines
976 B
Java
Raw Normal View History

2019-02-08 22:36:44 +01:00
package de.ellpeck.naturesaura.blocks;
2021-12-04 15:40:09 +01:00
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityTimeChanger;
2020-01-29 01:34:58 +01:00
import de.ellpeck.naturesaura.data.BlockStateGenerator;
import de.ellpeck.naturesaura.reg.ICustomBlockState;
2019-02-08 22:36:44 +01:00
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
2020-01-29 01:34:58 +01:00
public class BlockTimeChanger extends BlockContainerImpl implements ICustomBlockState {
2019-02-08 22:36:44 +01:00
public BlockTimeChanger() {
2021-12-04 15:40:09 +01:00
super("time_changer", BlockEntityTimeChanger::new, Properties.create(Material.ROCK).hardnessAndResistance(2.5F).sound(SoundType.STONE));
2019-02-08 22:36:44 +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")));
}
2019-02-08 22:36:44 +01:00
}