Class ReloadRequirements

java.lang.Object
net.minecraftforge.resource.ReloadRequirements

public final class ReloadRequirements extends Object
Holds methods to create standard predicates to select IResourceTypes that should be reloaded.
  • Constructor Details

    • ReloadRequirements

      public ReloadRequirements()
  • Method Details

    • all

      public static Predicate<IResourceType> all()
      Creates a reload predicate accepting all resource types.
      Returns:
      a predicate accepting all types
    • include

      public static Predicate<IResourceType> include(IResourceType... inclusion)
      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