Examples of moveEntity()


Examples of net.minecraft.entity.Entity.moveEntity()

        int k = MathHelper.floor_double(cart.posZ);

        if (EntityMinecart.getCollisionHandler() != this)
            if (other instanceof EntityLivingBase && RailcraftBlocks.getBlockElevator() != null && cart.worldObj.getBlock(i, j, k) == RailcraftBlocks.getBlockElevator())
                if (other.boundingBox.minY < cart.boundingBox.maxY) {
                    other.moveEntity(0, cart.boundingBox.maxY - other.boundingBox.minY, 0);
                    other.onGround = true;
                }

        if (MiscTools.getRand().nextFloat() < 0.001f) {
            List<EntityMinecart> carts = CartTools.getMinecartsAt(cart.worldObj, i, j, k, 0);
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.