Enum B3DLoader
- java.lang.Object
-
- java.lang.Enum<B3DLoader>
-
- net.minecraftforge.client.model.b3d.B3DLoader
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<B3DLoader>
,IFutureReloadListener
,IResourceManagerReloadListener
,ISelectiveResourceReloadListener
public enum B3DLoader extends java.lang.Enum<B3DLoader> implements ISelectiveResourceReloadListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
B3DLoader.B3DState
private static class
B3DLoader.BakedWrapper
private static class
B3DLoader.ModelWrapper
(package private) static class
B3DLoader.NodeJoint
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description private
B3DLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IUnbakedModel
loadModel(ResourceLocation modelLocation)
void
onResourceManagerReload(IResourceManager manager, java.util.function.Predicate<IResourceType> resourcePredicate)
A version of onResourceManager that selectively choosesIResourceType
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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
getResourceType, reload
-
Methods inherited from interface net.minecraftforge.resource.ISelectiveResourceReloadListener
onResourceManagerReload
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final B3DLoader INSTANCE
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
manager
private IResourceManager manager
-
enabledDomains
private final java.util.Set<java.lang.String> enabledDomains
-
cache
private final java.util.Map<ResourceLocation,B3DModel> cache
-
-
Method Detail
-
values
public static B3DLoader[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (B3DLoader c : B3DLoader.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static B3DLoader valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager manager, java.util.function.Predicate<IResourceType> resourcePredicate)
Description copied from interface:ISelectiveResourceReloadListener
A version of onResourceManager that selectively choosesIResourceType
s to reload. When using this, the given predicate should be called to ensure the relevant resources should be reloaded at this time.- Specified by:
onResourceManagerReload
in interfaceISelectiveResourceReloadListener
- Parameters:
manager
- the resource manager being reloadedresourcePredicate
- predicate to test whether any given resource type should be reloaded
-
loadModel
public IUnbakedModel loadModel(ResourceLocation modelLocation) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-