Package net.minecraft.world

Examples of net.minecraft.world.World


    return false;
  }

  @Override
  public void onUpdateEntity(IConduit conduit) {
    World world = conduit.getBundle().getEntity().getWorldObj();
    if(world == null) {
      return;
    }
    if(world.isRemote) {
      return;
    }
    long curTime = world.getTotalWorldTime();
    if(curTime != timeAtLastApply) {
      timeAtLastApply = curTime;
      tickHandler.tick = world.getTotalWorldTime();
      ConduitNetworkTickHandler.instance.addListener(tickHandler);
    }
  }
View Full Code Here


    }
  }

  @Override
  public void onUpdateEntity(IConduit conduit) {
    World world = conduit.getBundle().getEntity().getWorldObj();
    if(world == null) {
      return;
    }
    if(world.isRemote) {
      return;
    }

    long curTime = world.getTotalWorldTime();
    if(curTime > 0 && curTime != timeAtLastApply) {
      timeAtLastApply = curTime;
      ConduitNetworkTickHandler.instance.addListener(tickHandler);
    }
View Full Code Here

    }
    return false;
  }

  public IGasHandler getTankContainer(BlockCoord bc) {
    World w = getWorld();
    if(w == null) {
      return null;
    }
    TileEntity te = w.getTileEntity(bc.x, bc.y, bc.z);
    if(te instanceof IGasHandler) {
      if(te instanceof IPipeTile) {
        if(((IPipeTile) te).getPipeType() != PipeType.FLUID) {
          return null;
        }
View Full Code Here

  public static void doTransferFortron(IFortronFrequency transferer, IFortronFrequency receiver, int joules, int limit)
  {
    if (transferer != null && receiver != null)
    {
      TileEntity tileEntity = ((TileEntity) transferer);
      World world = tileEntity.worldObj;

      boolean isCamo = false;

      if (transferer instanceof IModuleAcceptor)
      {
View Full Code Here

    }
  }

  @Override
  public IInventory getExternalInventory(ForgeDirection direction) {
    World world = getBundle().getWorld();
    if(world == null) {
      return null;
    }
    BlockCoord loc = getLocation().getLocation(direction);
    TileEntity te = world.getTileEntity(loc.x, loc.y, loc.z);
    if(te instanceof IInventory && !(te instanceof IConduitBundle)) {
      return (IInventory) te;
    }
    return null;
  }
View Full Code Here

    private static class IronChestMessageHandler extends SimpleChannelInboundHandler<IronChestMessage>
    {
        @Override
        protected void channelRead0(ChannelHandlerContext ctx, IronChestMessage msg) throws Exception
        {
            World world = IronChest.proxy.getClientWorld();
            TileEntity te = world.getTileEntity(msg.x, msg.y, msg.z);
            if (te instanceof TileEntityIronChest)
            {
                TileEntityIronChest icte = (TileEntityIronChest) te;
                icte.setFacing(msg.facing);
                icte.handlePacketData(msg.type, msg.items);
View Full Code Here

      }
    }

    for(Entity entity : entitiesInPortal)
    {
      World teleWorld = FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(closestCoords.dimensionId);
      TileEntityTeleporter teleporter = (TileEntityTeleporter)closestCoords.getTileEntity(teleWorld);

      if(teleporter != null)
      {
        teleporter.didTeleport.add(entity);
View Full Code Here

  {
    EntityPlayer player = PacketHandler.getPlayer(context);
   
    if(!player.worldObj.isRemote)
    {
      World worldServer = FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(message.coord4D.dimensionId);

      if(worldServer != null && message.coord4D.getTileEntity(worldServer) instanceof TileEntityDigitalMiner)
      {
        DigitalMinerGuiMessage.openServerGui(message.packetType, message.guiType, worldServer, (EntityPlayerMP)player, message.coord4D, message.index);
      }
View Full Code Here

      if(getSoundSystem() != null)
      {
        if(!Mekanism.proxy.isPaused())
        {
          ArrayList<Sound> soundsToRemove = new ArrayList<Sound>();
          World world = FMLClientHandler.instance().getClient().theWorld;

          for(Sound sound : sounds.values())
          {
            if(FMLClientHandler.instance().getClient().thePlayer != null && world != null)
            {
View Full Code Here

  {
    EntityPlayer player = PacketHandler.getPlayer(context);
   
    if(!player.worldObj.isRemote)
    {
      World worldServer = FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(message.object3D.dimensionId);

      if(worldServer != null && message.object3D.getTileEntity(worldServer) instanceof TileEntityLogisticalSorter)
      {
        LogisticalSorterGuiMessage.openServerGui(message.packetType, message.guiType, worldServer, (EntityPlayerMP)player, message.object3D, message.index);
      }
View Full Code Here

TOP

Related Classes of net.minecraft.world.World

Copyright © 2018 www.massapicom. 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.