mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 20:45:59 +01:00
Minor mixin organization
- Move LevelRendererInstanceUpdateMixin to instancemanage package - Ensure flywheel$ prefix is added to all mixin injector methods
This commit is contained in:
parent
6b9b2a9927
commit
a526a48d23
@ -10,7 +10,7 @@ import net.minecraft.client.main.Main;
|
||||
@Mixin(Main.class)
|
||||
public class ClientMainMixin {
|
||||
@Inject(method = "main", at = @At("HEAD"))
|
||||
private static void injectRenderDoc(CallbackInfo ci) {
|
||||
private static void flywheel$injectRenderDoc(CallbackInfo ci) {
|
||||
// Only try to load RenderDoc if a system property is set.
|
||||
if (System.getProperty("flw.loadRenderDoc") == null) {
|
||||
return;
|
||||
|
@ -55,7 +55,7 @@ public class LevelRendererMixin {
|
||||
}
|
||||
|
||||
@Inject(at = @At("TAIL"), method = "allChanged")
|
||||
private void refresh(CallbackInfo ci) {
|
||||
private void flywheel$refresh(CallbackInfo ci) {
|
||||
Backend.refresh();
|
||||
|
||||
MinecraftForge.EVENT_BUS.post(new ReloadRenderersEvent(level));
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.jozufozu.flywheel.mixin;
|
||||
package com.jozufozu.flywheel.mixin.instancemanage;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
@ -16,7 +16,7 @@ import net.minecraft.world.level.block.entity.BlockEntity;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
|
||||
@Mixin(LevelRenderer.class)
|
||||
public class LevelRendererInstanceUpdateMixin {
|
||||
public class InstanceUpdateMixin {
|
||||
@Shadow
|
||||
private ClientLevel level;
|
||||
|
@ -14,7 +14,6 @@
|
||||
"FogUpdateMixin",
|
||||
"GlStateManagerMixin",
|
||||
"LevelRendererAccessor",
|
||||
"LevelRendererInstanceUpdateMixin",
|
||||
"LevelRendererMixin",
|
||||
"PausedPartialTickAccessor",
|
||||
"RenderTypeMixin",
|
||||
@ -22,6 +21,7 @@
|
||||
"instancemanage.ChunkRebuildHooksMixin",
|
||||
"instancemanage.InstanceAddMixin",
|
||||
"instancemanage.InstanceRemoveMixin",
|
||||
"instancemanage.InstanceUpdateMixin",
|
||||
"light.LightUpdateMixin",
|
||||
"light.NetworkLightUpdateMixin",
|
||||
"matrix.Matrix3fAccessor",
|
||||
|
Loading…
Reference in New Issue
Block a user