private final class ModelLoader.VanillaModelWrapper extends java.lang.Object implements IModel
Modifier and Type | Field and Description |
---|---|
private ModelBlockAnimation |
animation |
private ResourceLocation |
location |
private ModelBlock |
model |
private boolean |
uvlock |
Constructor and Description |
---|
VanillaModelWrapper(ResourceLocation location,
ModelBlock model,
boolean uvlock,
ModelBlockAnimation animation) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ModelBlock> |
asVanillaModel() |
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
IBakedModel |
bakeImpl(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
private IBakedModel |
bakeNormal(ModelBlock model,
IModelState perState,
IModelState modelState,
java.util.List<TRSRTransformation> newTransforms,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter,
boolean uvLocked) |
java.util.Optional<? extends IClip> |
getClip(java.lang.String name) |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.Collection<ResourceLocation> |
getTextures() |
ModelLoader.VanillaModelWrapper |
gui3d(boolean value) |
ModelLoader.VanillaModelWrapper |
retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
Applies new textures to the model.
|
ModelLoader.VanillaModelWrapper |
smoothLighting(boolean value) |
IModel |
uvlock(boolean value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultState, process
private final ResourceLocation location
private final ModelBlock model
private final boolean uvlock
private final ModelBlockAnimation animation
public VanillaModelWrapper(ResourceLocation location, ModelBlock model, boolean uvlock, ModelBlockAnimation animation)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IModel
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public IBakedModel bakeImpl(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
private IBakedModel bakeNormal(ModelBlock model, IModelState perState, IModelState modelState, java.util.List<TRSRTransformation> newTransforms, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter, boolean uvLocked)
public ModelLoader.VanillaModelWrapper retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel
public java.util.Optional<? extends IClip> getClip(java.lang.String name)
public ModelLoader.VanillaModelWrapper smoothLighting(boolean value)
smoothLighting
in interface IModel
public ModelLoader.VanillaModelWrapper gui3d(boolean value)
public java.util.Optional<ModelBlock> asVanillaModel()
asVanillaModel
in interface IModel