Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

[Quick Question] on EntityPlayer Methods


  • Please log in to reply
4 replies to this topic

#1

dustminerkid

Posted 16 September 2011 - 07:06 AM

When a player hits a block the block changes texture, the texture shows the gradual breaking of the block.

But when the player stops punching the block, then the block turns to its original pristine (no damage) state.

Is this change in texture based on some EntityPlayer method?

i've been experimenting on the method isSwinging, would that define that the player is punching?

OR is there another method (within EntityPlayer.class or Other Classes) that shows/gives such function

Thanks
Check out my new Mod
link: The Dragon Ball Mod Alpha 1.1

Register or log in to remove.

#2

Jonhy05
    Jonhy05

    Zombie Killer

  • Members
  • 204 posts
  • Location: Costa Rica

Posted 16 September 2011 - 07:43 AM

i believe it does the animation change in the setDamage() method i think.. I dont really know

..or the onDamage()..

Posted Image
Mjölnir Hammer Mod

clicky the + button :3

#3

dustminerkid

Posted 16 September 2011 - 09:06 AM

hello there, thanks for the reply

where could i find this methods?

Block.class
EntityPlayer.Class
EntityLiving.class
Check out my new Mod
link: The Dragon Ball Mod Alpha 1.1

#4

Tundmatu
  • Location: UTC+1
  • Minecraft: Tundmatu

Posted 16 September 2011 - 10:06 AM

View Postdustminerkid, on 16 September 2011 - 09:06 AM, said:

hello there, thanks for the reply

where could i find this methods?

Block.class
EntityPlayer.Class
EntityLiving.class

A wild guess would be RenderBlock

#5

dustminerkid

Posted 16 September 2011 - 11:55 AM

Upon Checking the RenderBlock i couldn't find any connection to Damage done by player, that will change its texture to the block-damage form


So i may still need suggestions on this

thanks for the people above
Check out my new Mod
link: The Dragon Ball Mod Alpha 1.1