Package org.moddingx.libx.datapack
Class ResourceEntry
java.lang.Object
org.moddingx.libx.datapack.ResourceEntry
Represents a resource entry defined by its
ResourceLocation
used as id
and a Resource
used to access the resource entry.-
Constructor Summary
ConstructorDescriptionResourceEntry
(net.minecraft.resources.ResourceLocation id, net.minecraft.server.packs.resources.Resource resource) Creates a new resource entry. -
Method Summary
-
Constructor Details
-
ResourceEntry
public ResourceEntry(net.minecraft.resources.ResourceLocation 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.ResourceLocation id()Gets the id of this resource entry -
resource
Opens a resource for this entry. The resource must be closed later.- Throws:
IOException
-