Class ResourceEntry
java.lang.Object
org.moddingx.libx.datapack.ResourceEntry
Represents a resource entry defined by its
Identifier used as id
and a Resource used to access the resource entry.-
Constructor Summary
ConstructorsConstructorDescriptionResourceEntry(net.minecraft.resources.Identifier id, net.minecraft.server.packs.resources.Resource resource) Creates a new resource entry. -
Method Summary
-
Constructor Details
-
ResourceEntry
public ResourceEntry(net.minecraft.resources.Identifier id, net.minecraft.server.packs.resources.Resource resource) Creates a new resource entry.- Parameters:
id- The id of the resourceresource- The resource
-
-
Method Details
-
id
public net.minecraft.resources.Identifier id()Gets the id of this resource entry -
resource
Gets a resource for this entry.- Throws:
IOException
-