Package net.minecraftforge.resource
Class ReloadRequirements
java.lang.Object
net.minecraftforge.resource.ReloadRequirements
Deprecated, for removal: This API element is subject to removal in a future version.
Selective reloading is no longer supported due to vanilla now reloading resources in parallel
Holds methods to create standard predicates to select
IResourceType
s that should be reloaded.-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<IResourceType>
all()
Deprecated, for removal: This API element is subject to removal in a future version.Creates a reload predicate accepting all resource types.static Predicate<IResourceType>
include(IResourceType... inclusion)
Deprecated, for removal: This API element is subject to removal in a future version.Creates an inclusive reload predicate.
-
Constructor Details
-
ReloadRequirements
public ReloadRequirements()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
all
Deprecated, for removal: This API element is subject to removal in a future version.Creates a reload predicate accepting all resource types.- Returns:
- a predicate accepting all types
-
include
Deprecated, for removal: This API element is subject to removal in a future version.Creates an inclusive reload predicate. Only given resource types will be loaded along with this.- Parameters:
inclusion
- the set of resource types to be included in the reload- Returns:
- an inclusion predicate based on the given types
-