private static final class B3DLoader.ModelWrapper extends java.lang.Object implements IUnbakedModel
Modifier and Type | Field and Description |
---|---|
private int |
defaultKey |
private boolean |
gui3d |
private boolean |
isSideLit |
private com.google.common.collect.ImmutableSet<java.lang.String> |
meshes |
private B3DModel |
model |
private ResourceLocation |
modelLocation |
private boolean |
smooth |
private com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
textures |
Constructor and Description |
---|
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
com.google.common.collect.ImmutableSet<java.lang.String> meshes,
boolean smooth,
boolean gui3d,
boolean isSideLit,
int defaultKey) |
ModelWrapper(ResourceLocation modelLocation,
B3DModel model,
com.google.common.collect.ImmutableSet<java.lang.String> meshes,
boolean smooth,
boolean gui3d,
boolean isSideLit,
int defaultKey,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bakeModel(ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
IModelTransform modelTransform,
ResourceLocation modelLocation) |
private static com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
buildTextures(java.util.List<B3DModel.Texture> textures) |
java.util.Optional<IClip> |
getClip(java.lang.String name)
Retrieves information about an animation clip in the model.
|
IModelTransform |
getDefaultState() |
java.util.Collection<ResourceLocation> |
getDependencies() |
private static java.lang.String |
getLocation(java.lang.String path) |
java.util.Collection<Material> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors) |
B3DLoader.ModelWrapper |
gui3d(boolean value) |
B3DLoader.ModelWrapper |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> data) |
B3DLoader.ModelWrapper |
retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures) |
B3DLoader.ModelWrapper |
smoothLighting(boolean value) |
private final ResourceLocation modelLocation
private final B3DModel model
private final com.google.common.collect.ImmutableSet<java.lang.String> meshes
private final com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures
private final boolean smooth
private final boolean gui3d
private final boolean isSideLit
private final int defaultKey
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<java.lang.String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey)
public ModelWrapper(ResourceLocation modelLocation, B3DModel model, com.google.common.collect.ImmutableSet<java.lang.String> meshes, boolean smooth, boolean gui3d, boolean isSideLit, int defaultKey, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
private static com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> buildTextures(java.util.List<B3DModel.Texture> textures)
private static java.lang.String getLocation(java.lang.String path)
public java.util.Collection<Material> getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
getTextures
in interface IUnbakedModel
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IUnbakedModel
@Nullable public IBakedModel bakeModel(ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ResourceLocation modelLocation)
bakeModel
in interface IUnbakedModel
public B3DLoader.ModelWrapper retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
public B3DLoader.ModelWrapper process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> data)
public java.util.Optional<IClip> getClip(java.lang.String name)
IForgeUnbakedModel
getClip
in interface IForgeUnbakedModel
name
- The clip namepublic IModelTransform getDefaultState()
public B3DLoader.ModelWrapper smoothLighting(boolean value)
public B3DLoader.ModelWrapper gui3d(boolean value)