-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockContainer.java
More file actions
35 lines (28 loc) · 963 Bytes
/
BlockContainer.java
File metadata and controls
35 lines (28 loc) · 963 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
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 abstract class BlockContainer extends Block
{
protected BlockContainer(int i, Material material)
{
super(i, material);
isBlockContainer[i] = true;
}
protected BlockContainer(int i, int j, Material material)
{
super(i, j, material);
isBlockContainer[i] = true;
}
public void onBlockAdded(World world, int i, int j, int k)
{
super.onBlockAdded(world, i, j, k);
world.setBlockTileEntity(i, j, k, getBlockEntity());
}
public void onBlockRemoval(World world, int i, int j, int k)
{
super.onBlockRemoval(world, i, j, k);
world.removeBlockTileEntity(i, j, k);
}
protected abstract TileEntity getBlockEntity();
}