Java Code Examples for net.minecraft.entity.player.EntityPlayer.travelToDimension()

The following are Jave code examples for showing how to use travelToDimension() of the net.minecraft.entity.player.EntityPlayer class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: PAYDAY   File:   View Source Code Vote up 6 votes
public IMessage onMessage(LobbyBeginGamePacket packet, MessageContext ctx) {
	int x = packet.x;
	int y = packet.y;
	int z = packet.z;

	World w = ctx.getServerHandler().playerEntity.worldObj;

	TileEntity te = w.getTileEntity(x, y, z);

	if (te != null && te instanceof LobbyTileEntity) {
		LobbyTileEntity tile = (LobbyTileEntity) te;


		for (EntityPlayer p : UUIDUtil.getPlayersFromProfileUUIDs(w, tile.players))

	return null;