Class CapeSource

java.lang.Object
dev.boze.api.client.cape.CapeSource

public abstract class CapeSource extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    callback(com.mojang.authlib.GameProfile profile, CapeLoadResult result, @Nullable net.minecraft.util.Identifier identifier)
    Gets called once a profile's cape gets loaded (if URL not null)
    boolean
     
    abstract URL
    getUrl(com.mojang.authlib.GameProfile profile)
    Returns url (to a png) for a given profile

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      public final String name
  • Constructor Details

    • CapeSource

      public CapeSource(String name)
  • Method Details

    • getUrl

      public abstract URL getUrl(com.mojang.authlib.GameProfile profile)
      Returns url (to a png) for a given profile
      Parameters:
      profile - Profile to get cape url for
      Returns:
      the url of the cape, or null if player has no cape
    • callback

      public abstract void callback(com.mojang.authlib.GameProfile profile, CapeLoadResult result, @Nullable @Nullable net.minecraft.util.Identifier identifier)
      Gets called once a profile's cape gets loaded (if URL not null)
      Parameters:
      profile - Profile which got loaded
      result - Cape load result
      identifier - Identifier of the cape (null if not loaded successfully)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object