Advertisement
Guest User

soundInstance

a guest
Jul 26th, 2022
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public class TransformShoutInstance extends AbstractTickableSoundInstance {
  2.  
  3. public TransformShoutInstance(SoundEvent soundEvent, SoundSource soundSource, RandomSource randomSource) {
  4. super(soundEvent, soundSource, randomSource);
  5. }
  6.  
  7.  
  8. @Override
  9. public void tick() {
  10. if(!keyEvents.isTransforming){
  11. stop();
  12.  
  13. System.out.println("STOPPED");
  14. }
  15. }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement