mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-05-03 00:25:17 +02:00
30 lines
1 KiB
Java
30 lines
1 KiB
Java
package de.ellpeck.naturesaura.blocks;
|
|
|
|
import de.ellpeck.naturesaura.api.render.IVisualizable;
|
|
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityMossGenerator;
|
|
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.level.Level;
|
|
import net.minecraftforge.api.distmarker.Dist;
|
|
import net.minecraftforge.api.distmarker.OnlyIn;
|
|
|
|
public class BlockMossGenerator extends BlockContainerImpl implements IVisualizable {
|
|
public BlockMossGenerator() {
|
|
super("moss_generator", BlockEntityMossGenerator::new, Properties.create(Material.ROCK).hardnessAndResistance(2.5F).sound(SoundType.STONE));
|
|
}
|
|
|
|
@Override
|
|
@OnlyIn(Dist.CLIENT)
|
|
public AxisAlignedBB getVisualizationBounds(Level level, BlockPos pos) {
|
|
return new AxisAlignedBB(pos).grow(2);
|
|
}
|
|
|
|
@Override
|
|
@OnlyIn(Dist.CLIENT)
|
|
public int getVisualizationColor(Level level, BlockPos pos) {
|
|
return 0x15702d;
|
|
}
|
|
}
|