-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockWorkbench.java
More file actions
46 lines (41 loc) · 1.07 KB
/
BlockWorkbench.java
File metadata and controls
46 lines (41 loc) · 1.07 KB
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
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class BlockWorkbench extends Block
{
protected BlockWorkbench(int i)
{
super(i, Material.wood);
blockIndexInTexture = 59;
}
public int getBlockTextureFromSide(int i)
{
if(i == 1)
{
return blockIndexInTexture - 16;
}
if(i == 0)
{
return Block.planks.getBlockTextureFromSide(0);
}
if(i == 2 || i == 4)
{
return blockIndexInTexture + 1;
} else
{
return blockIndexInTexture;
}
}
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
if(world.multiplayerWorld)
{
return true;
} else
{
entityplayer.displayWorkbenchGUI(i, j, k);
return true;
}
}
}