2020-05-23 14:02:38 +02:00
|
|
|
package com.simibubi.create.foundation;
|
2019-11-23 22:17:37 +01:00
|
|
|
|
2020-05-23 14:02:38 +02:00
|
|
|
import com.simibubi.create.CreateClient;
|
2020-01-13 20:23:44 +01:00
|
|
|
import com.simibubi.create.foundation.block.render.SpriteShifter;
|
2019-11-23 22:17:37 +01:00
|
|
|
|
|
|
|
import net.minecraft.client.resources.ReloadListener;
|
|
|
|
import net.minecraft.profiler.IProfiler;
|
|
|
|
import net.minecraft.resources.IResourceManager;
|
|
|
|
|
2020-09-04 01:23:09 +02:00
|
|
|
public class ResourceReloadHandler extends ReloadListener<Object> {
|
2019-11-23 22:17:37 +01:00
|
|
|
|
|
|
|
@Override
|
2020-09-04 01:23:09 +02:00
|
|
|
protected Object prepare(IResourceManager resourceManagerIn, IProfiler profilerIn) {
|
|
|
|
return new Object();
|
2019-11-23 22:17:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-09-04 01:23:09 +02:00
|
|
|
protected void apply(Object $, IResourceManager resourceManagerIn, IProfiler profilerIn) {
|
2019-11-23 22:17:37 +01:00
|
|
|
SpriteShifter.reloadUVs();
|
|
|
|
CreateClient.bufferCache.invalidate();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|