mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 00:37:59 +01:00
Docs
This commit is contained in:
parent
b44f0874b6
commit
0d47368bce
2 changed files with 12 additions and 1 deletions
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue