Class SkullModifier
java.lang.Object
io.github.projectunified.craftitem.spigot.skull.SkullModifier
- All Implemented Interfaces:
ItemModifier,SpigotItemModifier
Skull modifier that handles setting skull textures from various sources:
- Player names
- Player UUIDs
- Texture URLs
- Mojang SHA256 hashes
- Base64 encoded texture data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmodify(SpigotItem item, UnaryOperator<String> translator) Applies Spigot-specific modifications to a SpigotItem.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.craftitem.spigot.core.SpigotItemModifier
modify
-
Constructor Details
-
SkullModifier
Creates a skull modifier.- Parameters:
skullString- the skull string
-
-
Method Details
-
modify
Description copied from interface:SpigotItemModifierApplies Spigot-specific modifications to a SpigotItem.- Specified by:
modifyin interfaceSpigotItemModifier- Parameters:
item- the SpigotItem to modifytranslator- the string translator for variable substitution
-