aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util/GT_PlayedSound.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/util/GT_PlayedSound.java')
-rw-r--r--src/main/java/gregtech/api/util/GT_PlayedSound.java44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/main/java/gregtech/api/util/GT_PlayedSound.java b/src/main/java/gregtech/api/util/GT_PlayedSound.java
index fa9869397b..858f3b826e 100644
--- a/src/main/java/gregtech/api/util/GT_PlayedSound.java
+++ b/src/main/java/gregtech/api/util/GT_PlayedSound.java
@@ -3,26 +3,26 @@ package gregtech.api.util;
import static gregtech.api.enums.GT_Values.E;
public class GT_PlayedSound {
- public final String mSoundName;
- public final int mX, mY, mZ;
-
- public GT_PlayedSound(String aSoundName, double aX, double aY, double aZ) {
- mSoundName = aSoundName==null?E:aSoundName;
- mX = (int)aX;
- mY = (int)aY;
- mZ = (int)aZ;
- }
-
- @Override
- public boolean equals(Object aObject) {
- if (aObject != null && aObject instanceof GT_PlayedSound) {
- return ((GT_PlayedSound)aObject).mX == mX && ((GT_PlayedSound)aObject).mY == mY && ((GT_PlayedSound)aObject).mZ == mZ && ((GT_PlayedSound)aObject).mSoundName.equals(mSoundName);
- }
- return false;
- }
-
- @Override
- public int hashCode() {
- return mX+mY+mZ+mSoundName.hashCode();
- }
+ public final String mSoundName;
+ public final int mX, mY, mZ;
+
+ public GT_PlayedSound(String aSoundName, double aX, double aY, double aZ) {
+ mSoundName = aSoundName == null ? E : aSoundName;
+ mX = (int) aX;
+ mY = (int) aY;
+ mZ = (int) aZ;
+ }
+
+ @Override
+ public boolean equals(Object aObject) {
+ if (aObject != null && aObject instanceof GT_PlayedSound) {
+ return ((GT_PlayedSound) aObject).mX == mX && ((GT_PlayedSound) aObject).mY == mY && ((GT_PlayedSound) aObject).mZ == mZ && ((GT_PlayedSound) aObject).mSoundName.equals(mSoundName);
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ return mX + mY + mZ + mSoundName.hashCode();
+ }
} \ No newline at end of file