public class ModelLoaderRegistry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelLoaderRegistry.ExpandedBlockModelDeserializer |
static class |
ModelLoaderRegistry.VanillaProxy |
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
FILESYSTEM_PATH_TO_RESLOC |
private static java.util.Map<ResourceLocation,IModelLoader<?>> |
loaders |
private static boolean |
registryFrozen |
static java.lang.String |
WHITE_TEXTURE |
Constructor and Description |
---|
ModelLoaderRegistry() |
Modifier and Type | Method and Description |
---|---|
static IBakedModel |
bakeHelper(BlockModel blockModel,
ModelBakery modelBakery,
BlockModel otherModel,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
IModelTransform modelTransform,
ResourceLocation modelLocation,
boolean guiLight3d) |
static Material |
blockMaterial(ResourceLocation location) |
static Material |
blockMaterial(java.lang.String location) |
static IModelGeometry<?> |
deserializeGeometry(com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject object) |
static IModelTransform |
deserializeModelTransforms(com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject modelData) |
static java.util.Optional<IModelTransform> |
deserializeTransform(com.google.gson.JsonDeserializationContext context,
com.google.gson.JsonElement transformData) |
private static void |
deserializeTRSR(com.google.gson.JsonDeserializationContext context,
java.util.EnumMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms,
com.google.gson.JsonObject transform,
java.lang.String name,
ItemCameraTransforms.TransformType itemCameraTransform) |
static IModelGeometry<?> |
getModel(ResourceLocation loaderId,
com.google.gson.JsonDeserializationContext deserializationContext,
com.google.gson.JsonObject data) |
static void |
init() |
static void |
initComplete() |
static void |
registerLoader(ResourceLocation id,
IModelLoader<?> loader)
Makes system aware of your loader.
|
static Material |
resolveTexture(java.lang.String tex,
IModelConfiguration owner) |
public static final java.lang.String WHITE_TEXTURE
private static final java.util.Map<ResourceLocation,IModelLoader<?>> loaders
private static volatile boolean registryFrozen
private static final java.util.regex.Pattern FILESYSTEM_PATH_TO_RESLOC
public static void init()
public static void initComplete()
public static void registerLoader(ResourceLocation id, IModelLoader<?> loader)
public static IModelGeometry<?> getModel(ResourceLocation loaderId, com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject data)
@Nullable public static IModelGeometry<?> deserializeGeometry(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject object)
public static Material resolveTexture(@Nullable java.lang.String tex, IModelConfiguration owner)
public static Material blockMaterial(java.lang.String location)
public static Material blockMaterial(ResourceLocation location)
@Nullable public static IModelTransform deserializeModelTransforms(com.google.gson.JsonDeserializationContext deserializationContext, com.google.gson.JsonObject modelData)
public static java.util.Optional<IModelTransform> deserializeTransform(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonElement transformData)
private static void deserializeTRSR(com.google.gson.JsonDeserializationContext context, java.util.EnumMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms, com.google.gson.JsonObject transform, java.lang.String name, ItemCameraTransforms.TransformType itemCameraTransform)
public static IBakedModel bakeHelper(BlockModel blockModel, ModelBakery modelBakery, BlockModel otherModel, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation, boolean guiLight3d)