92 lines
2.3 KiB
Java
92 lines
2.3 KiB
Java
package WayofTime.bloodmagic.block;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.Random;
|
|
|
|
import WayofTime.bloodmagic.client.IVariantProvider;
|
|
import net.minecraft.block.BlockContainer;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.block.state.IBlockState;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.util.AxisAlignedBB;
|
|
import net.minecraft.util.BlockPos;
|
|
import net.minecraft.util.EnumWorldBlockLayer;
|
|
import net.minecraft.world.IBlockAccess;
|
|
import net.minecraft.world.World;
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
import WayofTime.bloodmagic.api.Constants;
|
|
import WayofTime.bloodmagic.tile.TileSpectralBlock;
|
|
import org.apache.commons.lang3.tuple.ImmutablePair;
|
|
import org.apache.commons.lang3.tuple.Pair;
|
|
|
|
public class BlockSpectral extends BlockContainer implements IVariantProvider
|
|
{
|
|
public BlockSpectral()
|
|
{
|
|
super(Material.cloth);
|
|
|
|
setUnlocalizedName(Constants.Mod.MODID + ".spectral");
|
|
setRegistryName(Constants.BloodMagicBlock.SPECTRAL.getRegName());
|
|
setBlockBounds(0, 0, 0, 0, 0, 0);
|
|
}
|
|
|
|
@Override
|
|
public boolean isOpaqueCube()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean isFullCube()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public EnumWorldBlockLayer getBlockLayer()
|
|
{
|
|
return EnumWorldBlockLayer.CUTOUT;
|
|
}
|
|
|
|
@Override
|
|
public void addCollisionBoxesToList(World worldIn, BlockPos pos, IBlockState state, AxisAlignedBB mask, List list, Entity collidingEntity)
|
|
{
|
|
}
|
|
|
|
@Override
|
|
public int quantityDropped(Random par1Random)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
@Override
|
|
public boolean isReplaceable(World world, BlockPos blockPos)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public boolean isAir(IBlockAccess world, BlockPos blockPos)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public TileEntity createNewTileEntity(World world, int meta)
|
|
{
|
|
return new TileSpectralBlock();
|
|
}
|
|
|
|
@Override
|
|
public List<Pair<Integer, String>> getVariants()
|
|
{
|
|
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
|
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
|
return ret;
|
|
}
|
|
}
|