mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-16 07:24:32 +01:00
61f2a35a61
ISimpleReloadListener is a reload listener functional interface meant to be used when preparation is not needed. All current reload listeners have been moved to this interface, which allows them to be lambdas and not have to create a new Object for every reload.
21 lines
674 B
Java
21 lines
674 B
Java
package com.simibubi.create.foundation;
|
|
|
|
import com.simibubi.create.CreateClient;
|
|
import com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation;
|
|
import com.simibubi.create.foundation.block.render.SpriteShifter;
|
|
import com.simibubi.create.foundation.utility.ISimpleReloadListener;
|
|
|
|
import net.minecraft.profiler.IProfiler;
|
|
import net.minecraft.resources.IResourceManager;
|
|
|
|
public class ResourceReloadHandler implements ISimpleReloadListener {
|
|
|
|
@Override
|
|
public void onReload(IResourceManager resourceManagerIn, IProfiler profilerIn) {
|
|
SpriteShifter.reloadUVs();
|
|
CreateClient.invalidateRenderers();
|
|
IHaveGoggleInformation.numberFormat.update();
|
|
}
|
|
|
|
}
|