2017-02-13 23:17:08 +01:00
|
|
|
/*
|
|
|
|
* This file ("BlockCrystalCluster.java") is part of the Actually Additions mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://ellpeck.de/actaddlicense
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
|
|
|
* © 2015-2017 Ellpeck
|
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.mod.blocks;
|
|
|
|
|
2021-02-28 15:47:54 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.blocks.base.FullyDirectionalBlock;
|
2017-02-13 23:17:08 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.items.metalists.TheCrystals;
|
2021-02-28 15:47:54 +01:00
|
|
|
import net.minecraft.block.BlockState;
|
2017-02-13 23:17:08 +01:00
|
|
|
import net.minecraft.block.SoundType;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
2021-02-28 15:47:54 +01:00
|
|
|
import net.minecraft.util.math.shapes.ISelectionContext;
|
|
|
|
import net.minecraft.util.math.shapes.VoxelShape;
|
|
|
|
import net.minecraft.world.IBlockReader;
|
2021-02-27 13:24:45 +01:00
|
|
|
|
2021-02-28 15:47:54 +01:00
|
|
|
public class BlockCrystalCluster extends FullyDirectionalBlock {
|
2017-02-13 23:17:08 +01:00
|
|
|
|
|
|
|
private final TheCrystals crystal;
|
|
|
|
|
2021-02-27 13:24:45 +01:00
|
|
|
public BlockCrystalCluster(TheCrystals crystal) {
|
2021-02-28 15:47:54 +01:00
|
|
|
super(Properties.create(Material.GLASS).hardnessAndResistance(0.25F, 1.0F).sound(SoundType.GLASS).setLightLevel(state -> 7));
|
2017-02-13 23:17:08 +01:00
|
|
|
this.crystal = crystal;
|
|
|
|
|
2021-02-28 15:47:54 +01:00
|
|
|
// this.setLightOpacity(1);
|
2017-02-13 23:17:08 +01:00
|
|
|
}
|
2017-02-14 20:48:01 +01:00
|
|
|
|
|
|
|
@Override
|
2021-02-28 15:47:54 +01:00
|
|
|
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) {
|
|
|
|
return Shapes.CRYSTAL_CLUSTER_SHAPE;
|
2017-02-14 20:48:01 +01:00
|
|
|
}
|
2021-02-26 22:15:48 +01:00
|
|
|
}
|