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

30 lines
1 KiB
Java
Raw Normal View History

2018-11-05 22:37:40 +01:00
package de.ellpeck.naturesaura.blocks;
import de.ellpeck.naturesaura.api.render.IVisualizable;
2020-01-22 01:32:26 +01:00
import de.ellpeck.naturesaura.blocks.tiles.TileEntityHopperUpgrade;
import net.minecraft.block.SoundType;
2018-11-05 22:37:40 +01:00
import net.minecraft.block.material.Material;
2019-01-27 13:57:34 +01:00
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-05 22:37:40 +01:00
public class BlockHopperUpgrade extends BlockContainerImpl implements IVisualizable {
2018-11-05 22:37:40 +01:00
public BlockHopperUpgrade() {
2020-10-17 21:13:45 +02:00
super("hopper_upgrade", TileEntityHopperUpgrade::new, Properties.create(Material.IRON).hardnessAndResistance(2.5F).sound(SoundType.METAL));
2018-11-05 22:37:40 +01:00
}
2019-01-27 13:57:34 +01:00
@Override
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
2019-01-27 13:57:34 +01:00
public AxisAlignedBB getVisualizationBounds(World world, BlockPos pos) {
return new AxisAlignedBB(pos).grow(7);
}
@Override
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
2019-01-27 13:57:34 +01:00
public int getVisualizationColor(World world, BlockPos pos) {
return 0x434f3f;
}
2018-11-05 22:37:40 +01:00
}