2021-03-29 10:15:59 +02:00
|
|
|
package appeng.block.legacy;
|
|
|
|
|
|
|
|
import appeng.block.AEBaseTileBlock;
|
|
|
|
import appeng.core.features.AEFeature;
|
2021-03-29 22:53:57 +02:00
|
|
|
import appeng.core.sync.GuiBridge;
|
2021-03-29 10:15:59 +02:00
|
|
|
import appeng.tile.legacy.TileLegacyController;
|
2021-03-29 22:53:57 +02:00
|
|
|
import appeng.util.Platform;
|
2021-03-29 10:15:59 +02:00
|
|
|
import net.minecraft.block.material.Material;
|
2021-03-29 22:53:57 +02:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
2021-03-29 10:15:59 +02:00
|
|
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
|
|
|
|
public class BlockLegacyController extends AEBaseTileBlock {
|
|
|
|
|
|
|
|
public BlockLegacyController() {
|
|
|
|
super(Material.iron);
|
|
|
|
this.setTileEntity(TileLegacyController.class);
|
|
|
|
this.setFeature( EnumSet.of(AEFeature.Legacy) );
|
|
|
|
}
|
|
|
|
|
2021-03-29 22:53:57 +02:00
|
|
|
@Override
|
|
|
|
public boolean onActivated(World w, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
|
|
|
Platform.openGUI(player, w.getTileEntity(x, y, z), ForgeDirection.getOrientation(side), GuiBridge.GUI_NETWORK_STATUS_BLOCK);
|
|
|
|
return true;
|
|
|
|
}
|
2021-03-29 10:15:59 +02:00
|
|
|
|
|
|
|
}
|