Package net.minecraft.network.play.server

Examples of net.minecraft.network.play.server.S1BPacketEntityAttach


//            rider.mountEntity(null);
            rider.ridingEntity = null;
            cart.riddenByEntity = null;
            if (rider instanceof EntityPlayerMP) {
                EntityPlayerMP player = ((EntityPlayerMP) rider);
                player.playerNetServerHandler.sendPacket(new S1BPacketEntityAttach(0, rider, null));
                player.setPositionAndUpdate(x + 0.5, getY() + 1, z + 0.5);
            } else
                rider.setLocationAndAngles(x + 0.5, getY() + 1, z + 0.5, rider.rotationYaw, rider.rotationPitch);
            cart.getEntityData().setInteger("MountPrevention", TIME_TILL_NEXT_MOUNT);
        }
View Full Code Here

TOP

Related Classes of net.minecraft.network.play.server.S1BPacketEntityAttach

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.