Example #1
0
 public override bool BlockActivated(net.minecraft.src.World world, int i, int j,
                                     int k, net.minecraft.src.EntityPlayer entityplayer)
 {
     if (world.singleplayerWorld)
     {
         return(true);
     }
     else
     {
         net.minecraft.src.TileEntityDispenser tileentitydispenser = (net.minecraft.src.TileEntityDispenser
                                                                      )world.GetBlockTileEntity(i, j, k);
         entityplayer.DisplayGUIDispenser(tileentitydispenser);
         return(true);
     }
 }