- 43
- 2
Доброго времени суток, форумчане! Создал частицу, пытаюсь присвоить ей текстуру:
Регистрирую её в эвенте:
Как итог - пикрил, вопрос: что я делаю не так?
Java:
this.setParticleTexture(RegistryEventHandler.textureAtlasSprite);
Java:
@Mod.EventBusSubscriber
public class RegistryEventHandler
{
public static TextureAtlasSprite textureAtlasSprite;
@SubscribeEvent
public void registerParticleMap(TextureStitchEvent.Pre event)
{
TextureMap map = event.getMap();
textureAtlasSprite = map.registerSprite(new ResourceLocation(Reference.MOD_ID + ":textures/particles/anton.png"));
}
}