Skip to content

Commit

Permalink
Get impl'd
Browse files Browse the repository at this point in the history
- Move all font/text related mixins into impl
  • Loading branch information
Jozufozu committed Sep 27, 2024
1 parent a9f63e8 commit 99e4b24
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
4 changes: 0 additions & 4 deletions common/src/backend/resources/flywheel.backend.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
"refmap": "backend-flywheel.refmap.json",
"client": [
"AbstractClientPlayerAccessor",
"CodePointMapMixin",
"FontSetMixin",
"FontTexture$NodeAccessor",
"FontTextureMixin",
"GlStateManagerMixin",
"LevelRendererAccessor",
"OptionsMixin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import com.mojang.blaze3d.vertex.VertexConsumer;

import dev.engine_room.flywheel.impl.extension.PoseStackExtension;
import dev.engine_room.flywheel.impl.mixin.FontAccessor;
import dev.engine_room.flywheel.impl.mixin.ModelPartAccessor;
import dev.engine_room.flywheel.impl.mixin.PoseStackAccessor;
import dev.engine_room.flywheel.impl.mixin.text.FontAccessor;
import dev.engine_room.flywheel.lib.internal.FlwLibLink;
import dev.engine_room.flywheel.lib.internal.GlyphExtension;
import dev.engine_room.flywheel.lib.transform.PoseTransformStack;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package dev.engine_room.flywheel.backend.util;
package dev.engine_room.flywheel.impl;

import com.mojang.blaze3d.font.SheetGlyphInfo;

/**
* For use in {@link dev.engine_room.flywheel.backend.mixin.FontTextureMixin}
* For use in {@link dev.engine_room.flywheel.impl.mixin.text.FontTextureMixin}
* to batch glyph uploads when they're created in a flywheel worker thread.
*/
public record FontTextureUpload(SheetGlyphInfo info, int x, int y) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.engine_room.flywheel.impl.mixin;
package dev.engine_room.flywheel.impl.mixin.text;

import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.engine_room.flywheel.backend.mixin;
package dev.engine_room.flywheel.impl.mixin.text;

import java.util.function.IntFunction;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.engine_room.flywheel.impl.mixin;
package dev.engine_room.flywheel.impl.mixin.text;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Invoker;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.engine_room.flywheel.backend.mixin;
package dev.engine_room.flywheel.impl.mixin.text;

import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.engine_room.flywheel.backend.mixin;
package dev.engine_room.flywheel.impl.mixin.text;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.engine_room.flywheel.backend.mixin;
package dev.engine_room.flywheel.impl.mixin.text;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -20,7 +20,7 @@
import com.mojang.blaze3d.platform.NativeImage;
import com.mojang.blaze3d.systems.RenderSystem;

import dev.engine_room.flywheel.backend.util.FontTextureUpload;
import dev.engine_room.flywheel.impl.FontTextureUpload;
import dev.engine_room.flywheel.lib.internal.FontTextureExtension;
import dev.engine_room.flywheel.lib.internal.GlyphExtension;
import net.minecraft.client.gui.font.FontTexture;
Expand Down
8 changes: 6 additions & 2 deletions common/src/main/resources/flywheel.impl.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
"compatibilityLevel": "JAVA_17",
"refmap": "flywheel.refmap.json",
"client": [
"BakedGlyphMixin",
"BlockEntityTypeMixin",
"ClientChunkCacheMixin",
"ClientLevelMixin",
"EntityTypeMixin",
"FontAccessor",
"LevelMixin",
"LevelRendererMixin",
"MinecraftMixin",
Expand All @@ -19,6 +17,12 @@
"PoseStackMixin",
"fix.FixFabulousDepthMixin",
"fix.FixNormalScalingMixin",
"text.BakedGlyphMixin",
"text.CodePointMapMixin",
"text.FontAccessor",
"text.FontSetMixin",
"text.FontTexture$NodeAccessor",
"text.FontTextureMixin",
"visualmanage.BlockEntityMixin",
"visualmanage.LevelChunkMixin",
"visualmanage.LevelRendererMixin",
Expand Down

0 comments on commit 99e4b24

Please sign in to comment.