Jump to content

Recommended Posts

Posted

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.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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