Examples of TileEntityBeacon


Examples of net.minecraft.tileentity.TileEntityBeacon

        return res;

      } else if(beaconNames.contains(method.getName())) {

        // Beacon needs to be done manually for some reason to work properly
        TileEntityBeacon par1TileEntityBeacon = (TileEntityBeacon) objects[0];
        realObj.getNextWindowId();

        realObj.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(realObj.currentWindowId, 7, par1TileEntityBeacon.getInventoryName(),
            par1TileEntityBeacon.getSizeInventory(), true));

        realObj.openContainer = new ContainerBeacon(realObj.inventory, par1TileEntityBeacon) {
          @Override
          public boolean canInteractWith(EntityPlayer par1EntityPlayer) {
            return true;
View Full Code Here

Examples of net.minecraft.tileentity.TileEntityBeacon

    int z = MathHelper.floor_double(item.posZ);

    if(item.worldObj.getBlock(x, y - 1, z) != Blocks.beacon)
      return -1;

    TileEntityBeacon beacon = (TileEntityBeacon) item.worldObj.getTileEntity(x, y - 1, z);
    if(beacon.getLevels() <= 0)
      return -1;

    List<EntityItem> items = item.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1));

    EntityItem diamond = null;
View Full Code Here

Examples of net.minecraft.tileentity.TileEntityBeacon

                        Slot slot = containerbeacon.getSlot(0);

                        if (slot.getHasStack())
                        {
                            slot.decrStackSize(1);
                            TileEntityBeacon tileentitybeacon = containerbeacon.func_148327_e();
                            tileentitybeacon.setPrimaryEffect(i);
                            tileentitybeacon.setSecondaryEffect(j);
                            tileentitybeacon.markDirty();
                        }
                    }
                    catch (Exception exception)
                    {
                        NetHandlerPlayServer.logger.error("Couldn\'t set beacon", exception);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.