1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
package tectech.thing.block;
import java.util.ArrayList;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import eu.usrv.yamcore.blocks.BlockBase;
import tectech.Reference;
/**
* Created by danie_000 on 17.12.2016.
*/
public final class BlockQuantumStuff extends BlockBase {
public static IIcon stuff;
public static int renderID;
public static BlockQuantumStuff INSTANCE;
public BlockQuantumStuff() {
super(Material.iron);
setBlockBounds(0, 0, 0, 1, 1, 1);
setBlockName("quantumStuff");
setHarvestLevel("wrench", 0);
setHardness(500);
setResistance(1);
setLightOpacity(0);
setBlockTextureName(Reference.MODID + ":blockQuantumStuff");
}
@Override
public boolean isBeaconBase(IBlockAccess worldObj, int x, int y, int z, int beaconX, int beaconY, int beaconZ) {
return false;
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister reg) {
super.registerBlockIcons(reg);
stuff = blockIcon;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean getCanBlockGrass() {
return false;
}
@Override
public boolean canBeReplacedByLeaves(IBlockAccess world, int x, int y, int z) {
return false;
}
@Override
@SideOnly(Side.CLIENT)
public int getRenderBlockPass() {
return 1;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
@SideOnly(Side.CLIENT)
public boolean shouldSideBeRendered(IBlockAccess worldIn, int x, int y, int z, int side) {
return false;
}
@Override
public int getRenderType() {
return renderID;
}
public static void run() {
INSTANCE = new BlockQuantumStuff();
GameRegistry.registerBlock(INSTANCE, INSTANCE.getUnlocalizedName());
}
@Override
public ArrayList<ItemStack> getDrops(World world, int x, int y, int z, int metadata, int fortune) {
return new ArrayList<>();
}
@Override
public Item getItemDropped(int meta, Random random, int fortune) {
return null;
}
}
|