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

31 lines
1 KiB
Java
Raw Normal View History

2018-11-04 16:38:09 +01:00
package de.ellpeck.naturesaura.blocks;
import de.ellpeck.naturesaura.api.render.IVisualizable;
2020-01-21 23:02:39 +01:00
import de.ellpeck.naturesaura.blocks.tiles.ModTileEntities;
2018-11-04 16:38:09 +01:00
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
2019-10-20 22:30:49 +02:00
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
2018-11-04 16:38:09 +01:00
public class BlockFlowerGenerator extends BlockContainerImpl implements IVisualizable {
2018-11-20 19:59:18 +01:00
2018-11-04 16:38:09 +01:00
public BlockFlowerGenerator() {
2020-01-21 23:02:39 +01:00
super("flower_generator", ModTileEntities.FLOWER_GENERATOR, ModBlocks.prop(Material.WOOD).sound(SoundType.WOOD).hardnessAndResistance(2F));
2018-11-04 16:38:09 +01:00
}
@Override
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
public AxisAlignedBB getVisualizationBounds(World world, BlockPos pos) {
return new AxisAlignedBB(pos).grow(3);
}
@Override
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
public int getVisualizationColor(World world, BlockPos pos) {
return 0xffed2b;
}
2018-11-04 16:38:09 +01:00
}