Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions patchwork-god-classes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dependencies {
compile project(path: ':patchwork-fml', configuration: 'dev')
compile project(path: ':patchwork-capabilities', configuration: 'dev')
compile project(path: ':patchwork-events-lifecycle', configuration: 'dev')
compile project(path: ':patchwork-events-rendering', configuration: 'dev')
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,33 @@

package net.minecraftforge.client;

import java.util.Set;

import net.minecraft.client.color.block.BlockColors;
import net.minecraft.client.color.item.ItemColors;
import net.minecraft.client.texture.SpriteAtlasTexture;
import net.minecraft.util.Identifier;

import net.patchworkmc.impl.event.render.RenderEvents;

/*
* Note: this class is intended for mod use only, to dispatch to the implementations kept in their own modules.
* Do not keep implementation details here, methods should be thin wrappers around methods in other modules.
*/
public class ForgeHooksClient {
public static void onBlockColorsInit(BlockColors blockColors) {
RenderEvents.onBlockColorsInit(blockColors);
}

public static void onItemColorsInit(ItemColors itemColors, BlockColors blockColors) {
RenderEvents.onItemColorsInit(itemColors, blockColors);
}

public static void onTextureStitchedPre(SpriteAtlasTexture map, Set<Identifier> resourceLocations) {
RenderEvents.onTextureStitchPre(map, resourceLocations);
}

public static void onTextureStitchedPost(SpriteAtlasTexture map) {
RenderEvents.onTextureStitchPost(map);
}
}
3 changes: 2 additions & 1 deletion patchwork-god-classes/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"fabricloader": ">=0.8.4",
"patchwork-fml": "*",
"patchwork-capabilities": "*",
"patchwork-events-lifecycle": "*"
"patchwork-events-lifecycle": "*",
"patchwork-events-rendering": "*"
},
"custom": {
"modmenu:api": true,
Expand Down