Guest User

PEEntityCreatures.class

a guest
Oct 1st, 2016
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.75 KB | None | 0 0
  1. public class PEEntityCreature extends EntityCreature implements INpc{
  2.     public PEEntityCreature(World worldIn) {
  3.         super(worldIn);
  4.     }
  5.    
  6.     /*
  7.      *I THINK THIS ONE IS THE PROBLEM!
  8.      *I GUESS THAT THE SOUNDMANAGER TRIES TO LOAD THE NORMAL SOUNDS ALSO ON THIS WAY BUT CAN'T FIND THEM!
  9.      *BUT I'M NOT SURE :(
  10.      *ANYWAY, EVEN IF THIS IS RIGHT, I REALLY DON'T KNOW HOW TO SOLVE IT!!!!!
  11.      */
  12.     @Override
  13.     public void playSound(SoundEvent sound, float volume, float pitch) {
  14.         if (!this.isSilent())
  15.             PacketHandler.sendToAllAround(new C00PacketSendSound(new ImplSound(sound,this.getSoundCategory(),volume,pitch,this.posX,this.posY,this.posZ)), this.dimension, this.posX, this.posY, this.posZ, volume > 1.0F ? (double)(16.0F * volume) : 16.0D);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment