Create/src/main/java/com/simibubi/create/foundation/ResourceReloadHandler.java
2020-05-23 14:02:38 +02:00

23 lines
665 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<String> {
@Override
protected String prepare(IResourceManager resourceManagerIn, IProfiler profilerIn) {
return "";
}
@Override
protected void apply(String splashList, IResourceManager resourceManagerIn, IProfiler profilerIn) {
SpriteShifter.reloadUVs();
CreateClient.bufferCache.invalidate();
}
}