Advertisement
Guest User

ClientHandler.class

a guest
May 22nd, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. package com.github.wolfiewaffle.tanspit.client;
  2.  
  3. import net.minecraft.util.SoundCategory;
  4. import net.minecraft.util.SoundEvent;
  5. import net.minecraft.util.math.BlockPos;
  6. import net.minecraft.world.World;
  7. import net.minecraftforge.fml.common.FMLCommonHandler;
  8.  
  9. public class ClientHandler {
  10.  
  11.     public static void playSound(BlockPos pos, World world, SoundEvent sound, SoundCategory category, float volume, float pitch) {
  12.         FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(world.provider.getDimension()).playSound(null, pos, sound, category, volume, pitch);
  13.     }
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement