mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-10 14:26:10 +01:00
213b504854
- Reworked and cleaned up Create's ProcessingRecipes - Prepared ProcessingRecipes for fluid ingredients and outputs - Added datagen infrastructure to ProcessingRecipes - Migrated all hand-written ProcessingRecipes to generated - Removed scrollinput on mixers - Fixed recipe lookup cache not invalidating on datapack reload - Removed "catalyst" ingredients
23 lines
666 B
Java
23 lines
666 B
Java
package com.simibubi.create.foundation;
|
|
|
|
import com.simibubi.create.CreateClient;
|
|
import com.simibubi.create.foundation.block.render.SpriteShifter;
|
|
|
|
import net.minecraft.client.resources.ReloadListener;
|
|
import net.minecraft.profiler.IProfiler;
|
|
import net.minecraft.resources.IResourceManager;
|
|
|
|
public class ResourceReloadHandler extends ReloadListener<Object> {
|
|
|
|
@Override
|
|
protected Object prepare(IResourceManager resourceManagerIn, IProfiler profilerIn) {
|
|
return new Object();
|
|
}
|
|
|
|
@Override
|
|
protected void apply(Object $, IResourceManager resourceManagerIn, IProfiler profilerIn) {
|
|
SpriteShifter.reloadUVs();
|
|
CreateClient.bufferCache.invalidate();
|
|
}
|
|
|
|
}
|