-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXCBlockThatch.java
More file actions
43 lines (36 loc) · 936 Bytes
/
Copy pathXCBlockThatch.java
File metadata and controls
43 lines (36 loc) · 936 Bytes
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
package net.minecraft.src;
public class BMMBlockThatch extends Block
{
int tex1;
int tex2;
int metaData;
protected BMMBlockThatch(int var1, int var2, int var3)
{
super(var1, Material.cloth);
this.tex1 = var2;
this.tex2 = var3;
}
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public int getBlockTextureFromSideAndMetadata(int var1, int var2)
{
this.metaData = var2;
switch (var2)
{
case 0:
return this.tex1;
case 1:
return this.tex2;
default:
return this.tex1;
}
}
/**
* Determines the damage on the item the block drops. Used in cloth and wood.
*/
protected int damageDropped(int var1)
{
return var1;
}
}