Reduce decompile API blockers
Some checks failed
Build / build (push) Failing after 6m48s

This commit is contained in:
MrSphay
2026-05-04 13:33:41 +02:00
parent e41adca82b
commit 93c8d5efae
40 changed files with 472 additions and 1083 deletions

View File

@@ -34,7 +34,7 @@ extends Screen {
private SimpleSoundInstance boomSoundInstance;
public VinlanxSplashScreen() {
super((Component)Component.m_237113_((String)"Vinlanx Intro"));
super((Component)Component.literal((String)"Vinlanx Intro"));
}
protected void m_7856_() {
@@ -43,7 +43,7 @@ extends Screen {
this.animator.load();
this.animator.play();
try {
SoundManager soundManager = Minecraft.m_91087_().m_91106_();
SoundManager soundManager = Minecraft.getInstance().m_91106_();
this.boomSoundInstance = SimpleSoundInstance.m_119755_((SoundEvent)((SoundEvent)ModSounds.INTRO_BOOM_2.get()), (float)1.0f, (float)1.0f);
soundManager.m_120367_((SoundInstance)this.boomSoundInstance);
}
@@ -69,7 +69,7 @@ extends Screen {
public void m_88315_(GuiGraphics graphics, int mouseX, int mouseY, float partialTick) {
int displayWidth;
int displayHeight;
graphics.m_280509_(0, 0, this.f_96543_, this.f_96544_, -16777216);
graphics.fill(0, 0, this.f_96543_, this.f_96544_, -16777216);
if (this.animator == null) {
return;
}
@@ -125,7 +125,7 @@ extends Screen {
}
if (this.boomSoundInstance != null) {
try {
Minecraft.m_91087_().m_91106_().m_120399_((SoundInstance)this.boomSoundInstance);
Minecraft.getInstance().m_91106_().m_120399_((SoundInstance)this.boomSoundInstance);
}
catch (Exception e) {
ExplosionOverhaul.LOGGER.warn("Failed to stop intro_boom_2: {}", (Object)e.toString());
@@ -139,7 +139,7 @@ extends Screen {
}
private void transitionToFirstTimeScreen() {
Minecraft mc = Minecraft.m_91087_();
Minecraft mc = Minecraft.getInstance();
mc.m_91152_((Screen)new GuideSlidesScreen());
}
}