diff options
author | glowredman <35727266+glowredman@users.noreply.github.com> | 2023-04-18 21:25:29 +0200 |
---|---|---|
committer | glowredman <35727266+glowredman@users.noreply.github.com> | 2023-04-18 21:25:29 +0200 |
commit | d8e04d6fa09bee145674e3bc7e756bac399a1406 (patch) | |
tree | e996001e2006d81b667e353b09718f6395fb8e42 /src/main | |
parent | 7e9d0149b511f74e3d33a50b04b8dd848e01c66c (diff) | |
download | GT5-Unofficial-d8e04d6fa09bee145674e3bc7e756bac399a1406.tar.gz GT5-Unofficial-d8e04d6fa09bee145674e3bc7e756bac399a1406.tar.bz2 GT5-Unofficial-d8e04d6fa09bee145674e3bc7e756bac399a1406.zip |
Use SoundResource enum
Diffstat (limited to 'src/main')
2 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/entity/projectiles/projectileEM.java b/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/entity/projectiles/projectileEM.java index 45592244c3..0390b2d61e 100644 --- a/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/entity/projectiles/projectileEM.java +++ b/src/main/java/com/github/technus/tectech/compatibility/openmodularturrets/entity/projectiles/projectileEM.java @@ -16,7 +16,7 @@ import com.github.technus.tectech.TecTech; import com.github.technus.tectech.mechanics.elementalMatter.core.stacks.EMInstanceStack; import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex.EMHadronDefinition; -import gregtech.api.GregTech_API; +import gregtech.api.enums.SoundResource; import gregtech.api.util.GT_Utility; /** @@ -94,7 +94,7 @@ public class projectileEM extends LaserProjectile { && hitBlock.getMaterial().isSolid()) { GT_Utility.sendSoundToPlayers( worldObj, - GregTech_API.sSoundList.get(209), + SoundResource.IC2_MACHINES_MACHINE_OVERLOAD, 1.0F, -1.0F, movingobjectposition.blockX, @@ -147,7 +147,7 @@ public class projectileEM extends LaserProjectile { if (TecTech.configTecTech.ENABLE_TURRET_EXPLOSIONS && antiMatter) { GT_Utility.sendSoundToPlayers( worldObj, - GregTech_API.sSoundList.get(209), + SoundResource.IC2_MACHINES_MACHINE_OVERLOAD, 1.0F, -1.0F, (int) movingobjectposition.entityHit.posX, diff --git a/src/main/java/com/github/technus/tectech/mechanics/anomaly/AnomalyHandler.java b/src/main/java/com/github/technus/tectech/mechanics/anomaly/AnomalyHandler.java index f1332bd2cf..f5caf493e2 100644 --- a/src/main/java/com/github/technus/tectech/mechanics/anomaly/AnomalyHandler.java +++ b/src/main/java/com/github/technus/tectech/mechanics/anomaly/AnomalyHandler.java @@ -34,7 +34,7 @@ import com.github.technus.tectech.mechanics.elementalMatter.definitions.complex. import com.github.technus.tectech.util.TT_Utility; import cpw.mods.fml.common.gameevent.TickEvent; -import gregtech.api.GregTech_API; +import gregtech.api.enums.SoundResource; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.util.GT_Utility; @@ -141,7 +141,7 @@ public class AnomalyHandler implements IChunkMetaDataHandler { } GT_Utility.sendSoundToPlayers( other.worldObj, - GregTech_API.sSoundList.get(209), + SoundResource.IC2_MACHINES_MACHINE_OVERLOAD, 1.0F, -1, (int) other.posX, @@ -149,7 +149,7 @@ public class AnomalyHandler implements IChunkMetaDataHandler { (int) other.posZ); GT_Utility.sendSoundToPlayers( player.worldObj, - GregTech_API.sSoundList.get(209), + SoundResource.IC2_MACHINES_MACHINE_OVERLOAD, 1.0F, -1, (int) player.posX, @@ -200,7 +200,7 @@ public class AnomalyHandler implements IChunkMetaDataHandler { } GT_Utility.sendSoundToPlayers( a.worldObj, - GregTech_API.sSoundList.get(209), + SoundResource.IC2_MACHINES_MACHINE_OVERLOAD, 1.0F, -1, (a.xPosition << 4) + x, @@ -217,7 +217,7 @@ public class AnomalyHandler implements IChunkMetaDataHandler { } GT_Utility.sendSoundToPlayers( b.worldObj, - GregTech_API.sSoundList.get(209), + SoundResource.IC2_MACHINES_MACHINE_OVERLOAD, 1.0F, -1, (b.xPosition << 4) + x, |