Correctly pause/speed up/slow down the End Portal Animation using Mixin magic
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package eu.crushedpixel.replaymod.mixin;
|
||||
|
||||
import eu.crushedpixel.replaymod.timer.EnchantmentTimer;
|
||||
import net.minecraft.client.renderer.tileentity.TileEntityEndPortalRenderer;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
@Mixin(TileEntityEndPortalRenderer.class)
|
||||
public class MixinTileEntityEndPortalRenderer {
|
||||
@Redirect(method = "func_180544_a", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;getSystemTime()J"))
|
||||
private long getEnchantmentTime() {
|
||||
return EnchantmentTimer.getEnchantmentTime();
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,8 @@
|
||||
"MixinRendererLivingEntity",
|
||||
"MixinRenderGlobal",
|
||||
"MixinRenderItem",
|
||||
"MixinRenderManager"
|
||||
"MixinRenderManager",
|
||||
"MixinTileEntityEndPortalRenderer"
|
||||
],
|
||||
"server": [],
|
||||
"client": [],
|
||||
|
||||
Reference in New Issue
Block a user