mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
33 lines
1.1 KiB
Java
33 lines
1.1 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the Botania Mod. Get the Source Code in github:
|
|
* https://github.com/Vazkii/Botania
|
|
*
|
|
* Botania is Open Source and distributed under the
|
|
* Botania License: http://botaniamod.net/license.php
|
|
*
|
|
* File Created @ [Feb 14, 2015, 1:03:11 AM (GMT)]
|
|
*/
|
|
package vazkii.botania.client.render.entity;
|
|
|
|
import net.minecraft.client.renderer.entity.EntityRendererManager;
|
|
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
|
import vazkii.botania.client.core.handler.MiscellaneousIcons;
|
|
import vazkii.botania.common.entity.EntitySpark;
|
|
|
|
public class RenderSpark extends RenderSparkBase<EntitySpark> {
|
|
|
|
public RenderSpark(EntityRendererManager renderManager) {
|
|
super(renderManager);
|
|
}
|
|
|
|
@Override
|
|
public TextureAtlasSprite getSpinningIcon(EntitySpark entity) {
|
|
int upgrade = entity.getUpgrade().ordinal() - 1;
|
|
return upgrade >= 0 && upgrade < MiscellaneousIcons.INSTANCE.sparkUpgradeIcons.length
|
|
? MiscellaneousIcons.INSTANCE.sparkUpgradeIcons[upgrade]
|
|
: super.getSpinningIcon(entity);
|
|
}
|
|
|
|
}
|