This commit is contained in:
Sollace 2018-07-19 22:21:41 +02:00
parent 70f96723e6
commit 712c98bb6b
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,8 @@
package com.voxelmodpack.hdskins; package com.voxelmodpack.hdskins;
/**
* Callback to perfom additional actions when the skin cache is cleared.
*/
@FunctionalInterface @FunctionalInterface
public interface ISkinCacheClearListener { public interface ISkinCacheClearListener {
boolean onSkinCacheCleared(); boolean onSkinCacheCleared();

View file

@ -3,8 +3,16 @@ package com.voxelmodpack.hdskins;
import java.awt.Graphics; import java.awt.Graphics;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
/**
* Interface for mods to convert player skins before loading.
*/
@FunctionalInterface @FunctionalInterface
public interface ISkinModifier { public interface ISkinModifier {
/**
* Called to convert the given skin.
*
* @param skin The skin being converted
* @param dest Graphics for drawing onto the image
*/
void convertSkin(BufferedImage skin, Graphics dest); void convertSkin(BufferedImage skin, Graphics dest);
} }