public enum B3DLoader extends java.lang.Enum<B3DLoader> implements ISelectiveResourceReloadListener
Modifier and Type | Class and Description |
---|---|
static class |
B3DLoader.B3DState |
private static class |
B3DLoader.BakedWrapper |
private static class |
B3DLoader.ModelWrapper |
(package private) static class |
B3DLoader.NodeJoint |
IFutureReloadListener.IStage
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<ResourceLocation,B3DModel> |
cache |
private java.util.Set<java.lang.String> |
enabledDomains |
private static org.apache.logging.log4j.Logger |
LOGGER |
private IResourceManager |
manager |
Modifier and Type | Method and Description |
---|---|
IUnbakedModel |
loadModel(ResourceLocation modelLocation) |
void |
onResourceManagerReload(IResourceManager manager,
java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively chooses
IResourceType s
to reload. |
static B3DLoader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static B3DLoader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
onResourceManagerReload
getResourceType, reload
func_225594_i_
public static final B3DLoader INSTANCE
private static final org.apache.logging.log4j.Logger LOGGER
private IResourceManager manager
private final java.util.Set<java.lang.String> enabledDomains
private final java.util.Map<ResourceLocation,B3DModel> cache
public static B3DLoader[] values()
for (B3DLoader c : B3DLoader.values()) System.out.println(c);
public static B3DLoader valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void onResourceManagerReload(IResourceManager manager, 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
in interface ISelectiveResourceReloadListener
manager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloadedpublic IUnbakedModel loadModel(ResourceLocation modelLocation) throws java.lang.Exception
java.lang.Exception