mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
# Conflicts: # assets/hbm/lang/de_DE.lang # assets/hbm/lang/en_US.lang # assets/hbm/sounds.json # assets/hbm/sounds/music/recordLambdaCore.ogg # assets/hbm/sounds/music/recordSectorSweep.ogg # assets/hbm/sounds/music/recordVortalCombat.ogg # com/hbm/blocks/BlockCrate.java # com/hbm/blocks/ModBlocks.java # com/hbm/blocks/NukeBoy.java # com/hbm/blocks/NukeGadget.java # com/hbm/blocks/NukeMan.java # com/hbm/blocks/NukeMike.java # com/hbm/blocks/TestEventTester.java # com/hbm/entity/mob/EntityHunterChopper.java # com/hbm/explosion/ExplosionChaos.java # com/hbm/explosion/ExplosionNukeGeneric.java # com/hbm/handler/FuelHandler.java # com/hbm/items/GunFatman.java # com/hbm/items/ModItems.java # com/hbm/items/gear/ModArmor.java # com/hbm/items/special/ItemStarterKit.java # com/hbm/items/weapon/GunMP.java # com/hbm/items/weapon/GunSuicide.java # com/hbm/items/weapon/ItemGrenade.java # com/hbm/lib/HbmChestContents.java # com/hbm/lib/HbmWorldGen.java # com/hbm/lib/Library.java # com/hbm/lib/ModDamageSource.java # com/hbm/lib/RefStrings.java # com/hbm/main/ClientProxy.java # com/hbm/main/CraftingManager.java # com/hbm/main/MainRegistry.java # com/hbm/main/ModEventHandlerClient.java # com/hbm/sound/MovingSoundChopper.java # com/hbm/sound/MovingSoundChopperMine.java # com/hbm/sound/MovingSoundCrashing.java # com/hbm/sound/MovingSoundPlayerLoop.java # com/hbm/sound/MovingSoundXVL1456.java
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package com.hbm.sound;
|
|
|
|
import com.hbm.items.ModItems;
|
|
|
|
import net.minecraft.client.audio.MovingSound;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
public class MovingSoundXVL1456 extends MovingSoundPlayerLoop {
|
|
|
|
public MovingSoundXVL1456(ResourceLocation p_i45104_1_, Entity player, EnumHbmSound type) {
|
|
super(p_i45104_1_, player, type);
|
|
this.setPitch(0.5F);
|
|
}
|
|
|
|
@Override
|
|
public void update() {
|
|
super.update();
|
|
|
|
ItemStack i = null;
|
|
|
|
if(this.player != null) {
|
|
i = ((EntityPlayer)this.player).getItemInUse();
|
|
}
|
|
|
|
<<<<<<< HEAD
|
|
//this.setPitch(this.getPitch() + 0.1F);
|
|
=======
|
|
<<<<<<< HEAD
|
|
//this.setPitch(this.getPitch() + 0.1F);
|
|
=======
|
|
this.setPitch(this.getPitch() + 0.1F);
|
|
>>>>>>> 540fb3d256a0f4ae6a8b1db586f8e9cfd6ed7372
|
|
>>>>>>> 5525318475377d238c79edc90a14ee8fa48397af
|
|
|
|
if(i == null || (i != null && i.getItem() != ModItems.gun_xvl1456) || !((EntityPlayer)this.player).isSneaking() || ((EntityPlayer)this.player).getItemInUseDuration() <= 0)
|
|
this.stop();
|
|
}
|
|
} |