Custom splashes
This commit is contained in:
parent
26382d9601
commit
8ebc611c7c
@ -0,0 +1,40 @@
|
|||||||
|
package ru.dbotthepony.mc.otm.mixin;
|
||||||
|
|
||||||
|
import net.minecraft.client.resources.SplashManager;
|
||||||
|
import net.minecraft.server.packs.resources.ResourceManager;
|
||||||
|
import net.minecraft.util.profiling.ProfilerFiller;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Mixin(SplashManager.class)
|
||||||
|
public abstract class SplashManagerMixin {
|
||||||
|
@Shadow
|
||||||
|
public List<String> splashes;
|
||||||
|
|
||||||
|
@Inject(
|
||||||
|
at = @At("TAIL"),
|
||||||
|
method = "apply(Ljava/util/List;Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/util/profiling/ProfilerFiller;)V"
|
||||||
|
)
|
||||||
|
public void otmSplashes(List<String> splashes, ResourceManager p_118879_, ProfilerFiller p_118880_, CallbackInfo ci) {
|
||||||
|
this.splashes.add("42 is the answer!");
|
||||||
|
this.splashes.add("Now with matter!");
|
||||||
|
this.splashes.add("Now with four dimensions!");
|
||||||
|
this.splashes.add("Now with more ways to slice Creepers!");
|
||||||
|
this.splashes.add("Batteries not included!");
|
||||||
|
this.splashes.add("As it was 13 nanoseconds ago!");
|
||||||
|
this.splashes.add("Smart AI is smart enough to fail Turing test!");
|
||||||
|
this.splashes.add("Neural computing!");
|
||||||
|
this.splashes.add("Swimming through quantum field!");
|
||||||
|
this.splashes.add("For biological and digital alike!");
|
||||||
|
this.splashes.add("Digital is the next form of Biological!");
|
||||||
|
|
||||||
|
this.splashes.add("Also try Starbound!");
|
||||||
|
this.splashes.add("Also try No Man's Sky!");
|
||||||
|
this.splashes.add("Also try Factorio!");
|
||||||
|
}
|
||||||
|
}
|
@ -23,6 +23,7 @@
|
|||||||
],
|
],
|
||||||
"client": [
|
"client": [
|
||||||
"MixinGameRenderer",
|
"MixinGameRenderer",
|
||||||
"MixinMinecraft"
|
"MixinMinecraft",
|
||||||
|
"SplashManagerMixin"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user