mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Pass renderType to IForgeBakedModel.useAmbientOcclusion (#8834)
This commit is contained in:
5 files changed
+23
-3
No files matched your search
@@ -49,6 +49,11 @@ public interface IForgeBakedModel
|
||||
return self().useAmbientOcclusion();
|
||||
}
|
||||
|
||||
default boolean useAmbientOcclusion(BlockState state, RenderType renderType)
|
||||
{
|
||||
return self().useAmbientOcclusion(state);
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies a transform for the given {@link ItemTransforms.TransformType} and {@code applyLeftHandTransform}, and
|
||||
* returns the model to be rendered.
|
||||
|
||||
@@ -57,6 +57,12 @@ public abstract class BakedModelWrapper<T extends BakedModel> implements BakedMo
|
||||
return originalModel.useAmbientOcclusion(state);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useAmbientOcclusion(BlockState state, RenderType renderType)
|
||||
{
|
||||
return originalModel.useAmbientOcclusion(state, renderType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isGui3d()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user