Pass renderType to IForgeBakedModel.useAmbientOcclusion (#8834)

This commit is contained in:
bdew authored and GitHub committed 2022-07-09 11:20:18 -04:00
1 parent b1ed321438
commit cce002ad29
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()
{