aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/GT_Proxy.java
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2021-03-11 17:43:44 +0100
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2021-03-11 17:43:44 +0100
commitb359d79f77bb3efd6433c845af0a948975651b9a (patch)
tree66dc56504634159891358ebd6d9a9520c3e2c50b /src/main/java/gregtech/common/GT_Proxy.java
parente735bc65230bdbf1324d3bd2c9b8602d43bb9050 (diff)
downloadGT5-Unofficial-b359d79f77bb3efd6433c845af0a948975651b9a.tar.gz
GT5-Unofficial-b359d79f77bb3efd6433c845af0a948975651b9a.tar.bz2
GT5-Unofficial-b359d79f77bb3efd6433c845af0a948975651b9a.zip
Implemented Builder Pattern
Diffstat (limited to 'src/main/java/gregtech/common/GT_Proxy.java')
-rw-r--r--src/main/java/gregtech/common/GT_Proxy.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java
index 46e01227b4..ecca0097fb 100644
--- a/src/main/java/gregtech/common/GT_Proxy.java
+++ b/src/main/java/gregtech/common/GT_Proxy.java
@@ -768,8 +768,13 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler {
aEvent.bow.damageItem(1, aEvent.entityPlayer);
aEvent.bow.getItem();
- new PositionedWorldEvent<>(aEvent.entityPlayer.worldObj, "random.bow")
- .playSoundAtEntity(aEvent.entityPlayer, 1.0F, 0.64893958288F + tSpeed * 0.5F);
+ new WorldSpawnedEventBuilder.SoundAtEntityEventBuilder()
+ .setPitch(0.64893958288F + tSpeed * 0.5F)
+ .setVolume(1f)
+ .setIdentifier("random.bow")
+ .setEntity(aEvent.entityPlayer)
+ .setWorld(aEvent.entityPlayer.worldObj)
+ .run();
tArrowEntity.canBePickedUp = 1;
if (!aEvent.entityPlayer.capabilities.isCreativeMode) {