Examples of onSheared()


Examples of net.minecraftforge.common.IShearable.onSheared()

                IShearable shearable = (IShearable)entity;
                int x = (int)Math.floor(posX);
                int y = (int)Math.floor(posY);
                int z = (int)Math.floor(posZ);
                if(shearable.isShearable(null, worldObj, x, y, z)) {
                    List<ItemStack> drops = shearable.onSheared(null, worldObj, x, y, z, 0);
                    for(ItemStack stack : drops) {
                        PneumaticCraftUtils.dropItemOnGround(stack, worldObj, entity.posX, entity.posY, entity.posZ);
                    }
                }
            }
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.