Decompile upstream Explosion Overhaul 0.2.3.0

This commit is contained in:
Gitea Runner
2026-05-04 10:03:58 +00:00
commit a8b3d372d7
212 changed files with 31516 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
/*
* Decompiled with CFR 0.152.
*/
package com.vinlanx.explosionoverhaul.client;
import net.minecraft.client.resources.sounds.AbstractTickableSoundInstance;
import net.minecraft.client.resources.sounds.SoundInstance;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundSource;
import net.minecraft.util.RandomSource;
import net.minecraft.world.phys.Vec3;
public class PositionalSoundInstance
extends AbstractTickableSoundInstance {
public PositionalSoundInstance(SoundEvent pSound, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, double pX, double pY, double pZ) {
super(pSound, pSource, pRandom);
this.f_119573_ = pVolume;
this.f_119574_ = pPitch;
this.f_119575_ = pX;
this.f_119576_ = pY;
this.f_119577_ = pZ;
this.f_119578_ = false;
this.f_119579_ = 0;
this.f_119582_ = false;
this.f_119580_ = SoundInstance.Attenuation.LINEAR;
}
public void m_7788_() {
}
public void updatePosition(Vec3 newPosition) {
this.f_119575_ = newPosition.m_7096_();
this.f_119576_ = newPosition.m_7098_();
this.f_119577_ = newPosition.m_7094_();
}
}