blob: 3c98223774be04592c70dab467624ea01674c5be (
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
|
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;
}
}
|