blob: 7bf504d144ce8a8e35ad7abcfde54455e2ae5364 (
plain)
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
|
package bloodasp.galacticgreg.api;
import net.minecraft.block.Block;
/**
* Class used for Simple Block - Meta constructs
*/
public class BlockMetaComb {
private int mMeta;
private Block mBlock;
/**
* Creates a simple instance for a block that has no meta value
*
* @param pBlock The Block in question. 0 is used as meta
*/
public BlockMetaComb(Block pBlock) {
this(pBlock, 0);
}
/**
* Creates a simple instance for a block with a meta value
*
* @param pBlock The Block in question
* @param pMeta The MetaValue in question ([block]:[meta])
*/
public BlockMetaComb(Block pBlock, int pMeta) {
mMeta = pMeta;
mBlock = pBlock;
}
/**
* Internal function
*
* @return The metadata for this block
*/
public int getMeta() {
return mMeta;
}
/**
* Internal function
*
* @return The block
*/
public Block getBlock() {
return mBlock;
}
}
|