How to see if a pig is saddled:

Discussion in 'Plugin Development' started by vildaberper, May 8, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    vildaberper

    Im posting this here so you dont have to go through 20 booleans on craftbukkits EntityPig like i just did. xD

    Code:
    if(entity instanceof Pig && ((net.minecraft.server.EntityPig) ((CraftPig) entity).getHandle()).x()){
         //Pig is saddled
    }
    
    Enjoy!
     
    Kuuichi likes this.
  2. Offline

    matter123

    shouldn't this be in recorces?
     
  3. Offline

    retsrif

    Yeah it should :p Still helpful though :D
     
Thread Status:
Not open for further replies.

Share This Page