Guest Abrynos Posted February 28, 2015 Share Posted February 28, 2015 Like the title says it i want to add a texture to my new EntityEnderArrow; The code is below: public class EntityEnderArrow extends EntityThrowable { public EntityEnderArrow(World world){ super(world); } public EntityEnderArrow(World world, EntityLivingBase entityliving){ super(world, entityliving); this.setSize(0.5F, 0.5F); } @SideOnly(Side.CLIENT) public EntityEnderArrow(World world, double d1, double d2, double d3){ super(world, d1, d2, d3); this.setSize(0.5F, 0.5F); } @Override public void onImpact(MovingObjectPosition pos){ if(pos.entityHit != null){ pos.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0.0F); } for(int i = 0; i < 32; ++i){ this.worldObj.spawnParticle("portal", this.posX, this.posY + this.rand.nextDouble() * 2.0D, this.posZ, this.rand.nextGaussian(), 0.0D, this.rand.nextGaussian()); } if(!this.worldObj.isRemote){ if(this.getThrower() != null && this.getThrower() instanceof EntityPlayerMP){ EntityPlayerMP player = (EntityPlayerMP)this.getThrower(); if(player.playerNetServerHandler.func_147362_b().isChannelOpen() && player.worldObj == this.worldObj){ EnderTeleportEvent event = new EnderTeleportEvent(player, this.posX, this.posY, this.posZ, 5.0F); if(!MinecraftForge.EVENT_BUS.post(event)){ if(this.getThrower().isRiding()){ this.getThrower().mountEntity((Entity)null); } this.getThrower().setPositionAndUpdate(event.targetX, event.targetY, event.targetZ); this.getThrower().fallDistance = 0.0F; } } } this.setDead(); } } } Quote Link to comment Share on other sites More sharing options...
Guest Abrynos Posted March 14, 2015 Share Posted March 14, 2015 still no answer Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.