CosmeticRegistry

public class CosmeticRegistry

Registry for managing cosmetic registration. Provides methods to register and query cosmetic items.

java.lang.Object > CosmeticRegistry

Field Summary

assetsDirectory

final Path assetsDirectory

Field assetsDirectory.

path

final Path path

Field path.

bsonArray

final BsonArray bsonArray

Field bsonArray.

doc

final BsonDocument doc

Field doc.

Method Detail

CosmeticRegistry

public public CosmeticRegistry (@Nonnull final AssetPack pack)

Method CosmeticRegistry.

Parameters:
@Nonnull final AssetPack pack

load

public T> load (@Nonnull final Path assetsDirectory, @Nonnull final String file, @Nonnull final Function func)

Method load.

Parameters:
@Nonnull final Path assetsDirectory
@Nonnull final String file
@Nonnull final Function func

getEmotes

public Emote> getEmotes ()

Method getEmotes.

getEyeColors

public PlayerSkinTintColor> getEyeColors ()

Method getEyeColors.

getGradientSets

public PlayerSkinGradientSet> getGradientSets ()

Method getGradientSets.

getBodyCharacteristics

public PlayerSkinPart> getBodyCharacteristics ()

Method getBodyCharacteristics.

getUnderwear

public PlayerSkinPart> getUnderwear ()

Method getUnderwear.

getEyebrows

public PlayerSkinPart> getEyebrows ()

Method getEyebrows.

getEars

public PlayerSkinPart> getEars ()

Method getEars.

getEyes

public PlayerSkinPart> getEyes ()

Method getEyes.

getFaces

public PlayerSkinPart> getFaces ()

Method getFaces.

getMouths

public PlayerSkinPart> getMouths ()

Method getMouths.

getFacialHairs

public PlayerSkinPart> getFacialHairs ()

Method getFacialHairs.

getPants

public PlayerSkinPart> getPants ()

Method getPants.

getOverpants

public PlayerSkinPart> getOverpants ()

Method getOverpants.

getUndertops

public PlayerSkinPart> getUndertops ()

Method getUndertops.

getOvertops

public PlayerSkinPart> getOvertops ()

Method getOvertops.

getHaircuts

public PlayerSkinPart> getHaircuts ()

Method getHaircuts.

getShoes

public PlayerSkinPart> getShoes ()

Method getShoes.

getHeadAccessories

public PlayerSkinPart> getHeadAccessories ()

Method getHeadAccessories.

getFaceAccessories

public PlayerSkinPart> getFaceAccessories ()

Method getFaceAccessories.

getEarAccessories

public PlayerSkinPart> getEarAccessories ()

Method getEarAccessories.

getGloves

public PlayerSkinPart> getGloves ()

Method getGloves.

getSkinFeatures

public PlayerSkinPart> getSkinFeatures ()

Method getSkinFeatures.

getCapes

public PlayerSkinPart> getCapes ()

Method getCapes.

getByType

public ?> getByType (@Nonnull final CosmeticType type)

Method getByType.

Parameters:
@Nonnull final CosmeticType type

switch

public return switch (type)

Method switch.

Parameters:
type type