Skip to content

Commit

Permalink
Sky chest
Browse files Browse the repository at this point in the history
  • Loading branch information
xsun2001 committed Aug 13, 2017
1 parent 107fc55 commit 9c7e22b
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/main/java/appeng/block/storage/BlockSkyChest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import appeng.api.AEApi;
import appeng.block.AEBaseTileBlock;
import appeng.client.render.blocks.RenderBlockSkyChest;
import appeng.core.features.AEFeature;
import appeng.core.sync.GuiBridge;
import appeng.helpers.ICustomCollision;
import appeng.tile.storage.TileSkyChest;
Expand All @@ -44,6 +45,7 @@
import net.minecraftforge.common.util.ForgeDirection;

import java.util.Collections;
import java.util.EnumSet;
import java.util.List;


Expand All @@ -54,24 +56,15 @@ public class BlockSkyChest extends AEBaseTileBlock implements ICustomCollision
private static final double AABB_OFFSET_SIDES = 0;
private static final double AABB_OFFSET_TOP = .125d;


public enum SkyChestType
{
STONE, BLOCK
}


public final SkyChestType type;

public BlockSkyChest( final SkyChestType type )
public BlockSkyChest()
{
super( Material.rock );
this.setTileEntity( TileSkyChest.class );
this.isOpaque = this.isFullSize = false;
this.lightOpacity = 0;
this.setHardness( 50 );
this.blockResistance = 150.0f;
this.type = type;
this.setFeature( EnumSet.of( AEFeature.Core, AEFeature.SkyStoneChests ) );
}

@Override
Expand Down

0 comments on commit 9c7e22b

Please sign in to comment.