public interface IModelLoader<T extends IModelGeometry<T>> extends ISelectiveResourceReloadListener
IFutureReloadListener.IStage
修飾子とタイプ | メソッドと説明 |
---|---|
default IResourceType |
getResourceType() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
default void |
onResourceManagerReload(IResourceManager resourceManager,
java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively chooses
IResourceType s
to reload. |
T |
read(com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject modelContents) |
reload
func_225594_i_
default IResourceType getResourceType()
getResourceType
インタフェース内 IResourceManagerReloadListener
void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
インタフェース内 IResourceManagerReloadListener
onResourceManagerReload
インタフェース内 ISelectiveResourceReloadListener
default void onResourceManagerReload(IResourceManager resourceManager, java.util.function.Predicate<IResourceType> resourcePredicate)
ISelectiveResourceReloadListener
IResourceType
s
to reload.
When using this, the given predicate should be called to ensure the relevant resources should
be reloaded at this time.onResourceManagerReload
インタフェース内 ISelectiveResourceReloadListener
resourceManager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloadedT read(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelContents)