This commit is contained in:
Sollace 2018-07-19 22:21:41 +02:00
parent b44f0874b6
commit 0d47368bce
2 changed files with 12 additions and 1 deletions

View file

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

View file

@ -3,8 +3,16 @@ package com.voxelmodpack.hdskins;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
/**
* Interface for mods to convert player skins before loading.
*/
@FunctionalInterface
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);
}