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

30 lines
957 B
Java
Raw Normal View History

2019-02-01 17:42:59 +01:00
package de.ellpeck.naturesaura.blocks;
2019-02-02 14:23:16 +01:00
import de.ellpeck.naturesaura.api.render.IVisualizable;
2021-12-04 15:40:09 +01:00
import de.ellpeck.naturesaura.blocks.tiles.BlockEntityMossGenerator;
2021-12-15 16:24:53 +01:00
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.phys.AABB;
2024-02-03 14:56:07 +01:00
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;
2019-02-01 17:42:59 +01:00
2019-02-02 14:23:16 +01:00
public class BlockMossGenerator extends BlockContainerImpl implements IVisualizable {
2021-12-15 16:24:53 +01:00
2019-02-01 17:42:59 +01:00
public BlockMossGenerator() {
2023-07-08 12:32:27 +02:00
super("moss_generator", BlockEntityMossGenerator.class, Properties.of().strength(2.5F).sound(SoundType.STONE));
2019-02-02 14:23:16 +01:00
}
@Override
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
public AABB getVisualizationBounds(Level level, BlockPos pos) {
2021-12-15 16:24:53 +01:00
return new AABB(pos).inflate(2);
2019-02-02 14:23:16 +01:00
}
@Override
2019-10-20 22:30:49 +02:00
@OnlyIn(Dist.CLIENT)
2021-12-04 15:40:09 +01:00
public int getVisualizationColor(Level level, BlockPos pos) {
2019-02-02 14:23:16 +01:00
return 0x15702d;
2019-02-01 17:42:59 +01:00
}
}