generated from MrSphay/codex-agent-repository-kit
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user