Interface ResourcePackInfo
-
public interface ResourcePackInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceResourcePackInfo.Builderstatic classResourcePackInfo.OriginRepresents the origin of the resource-pack.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @org.checkerframework.checker.nullness.qual.Nullable byte[]getHash()Gets the SHA-1 hash of the resource-pack SeeResourcePackInfo.Builder.setHash(byte[])for more information.ResourcePackInfo.OrigingetOrigin()Gets theResourcePackInfo.Originof the resource-pack.@Nullable ComponentgetPrompt()Gets theComponentthat is displayed on the resource-pack prompt.booleangetShouldForce()Gets whether or not the acceptance of the resource-pack is enforced.StringgetUrl()Gets the link the resource-pack can be found at.
-
-
-
Method Detail
-
getUrl
String getUrl()
Gets the link the resource-pack can be found at.- Returns:
- the location of the resource-pack
-
getPrompt
@Nullable Component getPrompt()
Gets theComponentthat is displayed on the resource-pack prompt. This is only displayed if the client version is 1.17 or newer.- Returns:
- the prompt if present or null otherwise
-
getShouldForce
boolean getShouldForce()
Gets whether or not the acceptance of the resource-pack is enforced. SeeResourcePackInfo.Builder.setShouldForce(boolean)for more information.- Returns:
- whether or not to force usage of this resource-pack
-
getHash
@org.checkerframework.checker.nullness.qual.Nullable byte[] getHash()
Gets the SHA-1 hash of the resource-pack SeeResourcePackInfo.Builder.setHash(byte[])for more information.- Returns:
- the hash if present or null otherwise
-
getOrigin
ResourcePackInfo.Origin getOrigin()
Gets theResourcePackInfo.Originof the resource-pack.- Returns:
- the origin of the resource pack
-
-