Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.github.wolfiewaffle.tanspit.client;
- import net.minecraft.util.SoundCategory;
- import net.minecraft.util.SoundEvent;
- import net.minecraft.util.math.BlockPos;
- import net.minecraft.world.World;
- import net.minecraftforge.fml.common.FMLCommonHandler;
- public class ClientHandler {
- public static void playSound(BlockPos pos, World world, SoundEvent sound, SoundCategory category, float volume, float pitch) {
- FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(world.provider.getDimension()).playSound(null, pos, sound, category, volume, pitch);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement