Class ProfileContainer<T>
java.lang.Object
com.cryptomorin.xseries.profiles.objects.ProfileContainer<T>
- Type Parameters:
T- the bukkit object.
- All Implemented Interfaces:
Profileable
- Direct Known Subclasses:
ProfileContainer.BlockProfileContainer,ProfileContainer.BlockStateProfileContainer,ProfileContainer.ItemMetaProfileContainer,ProfileContainer.ItemStackProfileContainer
Represenets any object that has a
GameProfile which can also be changed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classNested classes/interfaces inherited from interface com.cryptomorin.xseries.profiles.objects.Profileable
Profileable.DynamicGameProfileProfileable, Profileable.PlayerProfileable, Profileable.PlayerProfileProfileable, Profileable.RawGameProfileProfileable, Profileable.StringProfileable, Profileable.UsernameProfileable, Profileable.UUIDProfileable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TbooleanisReady()Whether this profile has all the necessary information to construct itsProfileable.getProfile()right away.abstract voidsetProfile(@Nullable com.mojang.authlib.GameProfile profile) final StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.cryptomorin.xseries.profiles.objects.Profileable
getDisposableProfile, getProfile, getProfileValue, prepare, test, transform
-
Constructor Details
-
ProfileContainer
public ProfileContainer()
-
-
Method Details
-
setProfile
@NotNull public abstract void setProfile(@Nullable @Nullable com.mojang.authlib.GameProfile profile) -
getObject
-
isReady
public boolean isReady()Description copied from interface:ProfileableWhether this profile has all the necessary information to construct itsProfileable.getProfile()right away. When this method returns false, it means some kind of request has to be sent to Mojang servers in order to retrieve some information.Even if this method returns true, it doesn't necessarily mean that this profile has all information (textures, username, UUID, etc.) it merely means that it has all the information it needs in memory to compute its
Profileable.getProfile()and doesn't need to a request any data usingMinecraftClient.- Specified by:
isReadyin interfaceProfileable- See Also:
-
toString
-