Hello I need an TextureAtlasSprite from an ResourceLocation, but i cannot find how to get it.
@OnlyIn(Dist.CLIENT)
@Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD)
public static class RegistryEvents {
@SubscribeEvent
public void onTextureStiching(final TextureStitchEvent event) {
Sprites.GURADIAN_EYE = event.getMap().getSprite(Sprites.guradianEyeSprite);
}
}
This i tried, but it seems to be null.