Skip to content

Commit

Permalink
Align with new Sodium mixin conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Aug 26, 2023
1 parent 6aad895 commit 6f4d0b9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.util.Arrays;

/**
* Adaption of {@link ArrayLightDataCache} that stores data for
* Adaptation of {@link ArrayLightDataCache} that stores data for
* only one block and its neighbors.
*/
public class SingleBlockLightDataCache extends LightDataAccess {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* Entrypoint of the FRAPI pipeline for non-terrain block rendering, for the baked models that require it.
*/
@Mixin(BlockModelRenderer.class)
public abstract class MixinBlockModelRenderer implements BlockModelRendererExtended {
public abstract class BlockModelRendererMixin implements BlockModelRendererExtended {
@Unique
private ThreadLocal<NonTerrainBlockRenderContext> sodium_contexts = ThreadLocal.withInitial(NonTerrainBlockRenderContext::new);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(BlockRenderManager.class)
public class MixinBlockRenderManager {
public class BlockRenderManagerMixin {
@Shadow
private BlockModelRenderer blockModelRenderer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* Entrypoint of the FRAPI pipeline for item rendering, for the baked models that require it.
*/
@Mixin(ItemRenderer.class)
public abstract class MixinItemRenderer {
public abstract class ItemRendererMixin {
@Final
@Shadow
private ItemColors colors;
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/sodium.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"core.world.map.ClientChunkManagerMixin",
"core.world.map.ClientPlayNetworkHandlerMixin",
"core.world.map.ClientWorldMixin",
"features.frapi.block_non_terrain.BlockModelRendererMixin",
"features.frapi.block_non_terrain.BlockRenderManagerMixin",
"features.frapi.item.ItemRendererAccessor",
"features.frapi.item.ItemRendererMixin",
"features.gui.hooks.console.GameRendererMixin",
"features.gui.hooks.debug.DebugHudMixin",
"features.gui.hooks.settings.OptionsScreenMixin",
Expand All @@ -54,10 +58,6 @@
"features.render.immediate.buffer_builder.sorting.BufferBuilderMixin",
"features.render.immediate.buffer_builder.sorting.VertexSorterMixin",
"features.render.immediate.matrix_stack.MatrixStackMixin",
"features.frapi.block_non_terrain.MixinBlockModelRenderer",
"features.frapi.block_non_terrain.MixinBlockRenderManager",
"features.frapi.item.ItemRendererAccessor",
"features.frapi.item.MixinItemRenderer",
"features.render.immediate.matrix_stack.VertexConsumerMixin",
"features.render.model.RenderLayersMixin",
"features.render.model.block.BlockModelRendererMixin",
Expand Down

0 comments on commit 6f4d0b9

Please sign in to comment.