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;
|
2021-03-09 03:45:05 +01:00
|
|
|
import com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation;
|
2020-01-13 20:23:44 +01:00
|
|
|
import com.simibubi.create.foundation.block.render.SpriteShifter;
|
2021-04-28 22:37:21 +02:00
|
|
|
import com.simibubi.create.foundation.utility.ISimpleReloadListener;
|
2021-04-08 19:22:11 +02:00
|
|
|
|
2019-11-23 22:17:37 +01:00
|
|
|
import net.minecraft.profiler.IProfiler;
|
|
|
|
import net.minecraft.resources.IResourceManager;
|
|
|
|
|
2021-04-28 22:37:21 +02:00
|
|
|
public class ResourceReloadHandler implements ISimpleReloadListener {
|
2019-11-23 22:17:37 +01:00
|
|
|
|
|
|
|
@Override
|
2021-04-28 22:37:21 +02:00
|
|
|
public void onReload(IResourceManager resourceManagerIn, IProfiler profilerIn) {
|
2019-11-23 22:17:37 +01:00
|
|
|
SpriteShifter.reloadUVs();
|
2021-01-11 09:29:02 +01:00
|
|
|
CreateClient.invalidateRenderers();
|
2021-03-09 03:45:05 +01:00
|
|
|
IHaveGoggleInformation.numberFormat.update();
|
2019-11-23 22:17:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|