Interface ResourcePackInfo
- All Superinterfaces:
ResourcePackInfoLike
Represents information about a resource pack that can be sent to players.
- Since:
- 4.15.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for resource pack requests. -
Method Summary
Modifier and TypeMethodDescriptiondefault ResourcePackInfoGets aResourcePackInforepresentation.hash()Gets the SHA-1 hash.id()Gets the id.static ResourcePackInfo.BuilderCreate a new builder that will create aResourcePackInfo.static ResourcePackInforesourcePackInfo(UUID id, URI uri, String hash) Creates information about a resource pack.uri()Gets the uri.
-
Method Details
-
resourcePackInfo
Creates information about a resource pack.- Parameters:
id- the iduri- the urihash- the sha-1 hash- Returns:
- the resource pack request
- Since:
- 4.15.0
-
resourcePackInfo
Create a new builder that will create aResourcePackInfo.- Returns:
- a builder
- Since:
- 4.15.0
-
id
-
uri
-
hash
-
asResourcePackInfo
Description copied from interface:ResourcePackInfoLikeGets aResourcePackInforepresentation.- Specified by:
asResourcePackInfoin interfaceResourcePackInfoLike- Returns:
- a component
-