Package mekanism.common.network.PacketPortalFX

Examples of mekanism.common.network.PacketPortalFX.PortalFXMessage


          teleportEntityTo(entity, closestCoords, teleporter);
        }

        for(Coord4D coords : Mekanism.teleporters.get(code))
        {
          Mekanism.packetHandler.sendToReceivers(new PortalFXMessage(coords), new Range4D(coords));
        }

        setEnergy(getEnergy() - calculateEnergyCost(entity, closestCoords));

        worldObj.playSoundAtEntity(entity, "mob.endermen.portal", 1.0F, 1.0F);
View Full Code Here


            }
           
            ((EntityPlayerMP)player).playerNetServerHandler.setPlayerLocation(coords.xCoord+0.5, coords.yCoord+1, coords.zCoord+0.5, player.rotationYaw, player.rotationPitch);
           
            world.playSoundAtEntity(player, "mob.endermen.portal", 1.0F, 1.0F);
            Mekanism.packetHandler.sendToReceivers(new PortalFXMessage(coords), new Range4D(coords));
          } catch(Exception e) {}
        }
      }
    }
   
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketPortalFX.PortalFXMessage

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.