Package net.minecraft.resource
Class ReloadableResourceManagerImpl.FailedResourceReloadMonitor
java.lang.Object
net.minecraft.resource.ReloadableResourceManagerImpl.FailedResourceReloadMonitor
- All Implemented Interfaces:
ResourceReloadMonitor
- Enclosing class:
- ReloadableResourceManagerImpl
static class ReloadableResourceManagerImpl.FailedResourceReloadMonitor extends Object implements ResourceReloadMonitor
-
Field Summary
Fields Modifier and Type Field Description private ReloadableResourceManagerImpl.PackAdditionFailedExceptionexceptionprivate CompletableFuture<Unit>future -
Constructor Summary
Constructors Constructor Description FailedResourceReloadMonitor(ReloadableResourceManagerImpl.PackAdditionFailedException exception) -
Method Summary
Modifier and Type Method Description floatgetProgress()booleanisApplyStageComplete()booleanisPrepareStageComplete()voidthrowExceptions()CompletableFuture<Unit>whenComplete()
-
Field Details
-
exception
-
future
-
-
Constructor Details
-
FailedResourceReloadMonitor
public FailedResourceReloadMonitor(ReloadableResourceManagerImpl.PackAdditionFailedException exception)
-
-
Method Details
-
whenComplete
- Specified by:
whenCompletein interfaceResourceReloadMonitor
-
getProgress
@Environment(CLIENT) public float getProgress()- Specified by:
getProgressin interfaceResourceReloadMonitor
-
isPrepareStageComplete
@Environment(CLIENT) public boolean isPrepareStageComplete()- Specified by:
isPrepareStageCompletein interfaceResourceReloadMonitor
-
isApplyStageComplete
@Environment(CLIENT) public boolean isApplyStageComplete()- Specified by:
isApplyStageCompletein interfaceResourceReloadMonitor
-
throwExceptions
@Environment(CLIENT) public void throwExceptions()- Specified by:
throwExceptionsin interfaceResourceReloadMonitor
-