Jump to content

[1.16.5] Getting a TextureAtlasSprite


Nike_Schuh

Recommended Posts

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.