mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-15 23:14:12 +01:00
24 lines
663 B
Java
24 lines
663 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.invalidateRenderers();
|
|
}
|
|
|
|
}
|