mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 15:56:02 +00:00
Disable guiLight3d for generated item models (#9230)
This commit is contained in:
1 parent
85f9b1012c
commit
6b1c628326
2 files changed
+10
-2
No files matched your search
+8
-1
@@ -41,6 +41,7 @@ public class BlockGeometryBakingContext implements IGeometryBakingContext
|
||||
private Transformation rootTransform;
|
||||
@Nullable
|
||||
private ResourceLocation renderTypeHint;
|
||||
private boolean gui3d = true;
|
||||
|
||||
@ApiStatus.Internal
|
||||
public BlockGeometryBakingContext(BlockModel owner)
|
||||
@@ -93,7 +94,7 @@ public class BlockGeometryBakingContext implements IGeometryBakingContext
|
||||
@Override
|
||||
public boolean isGui3d()
|
||||
{
|
||||
return true;
|
||||
return gui3d;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -141,12 +142,18 @@ public class BlockGeometryBakingContext implements IGeometryBakingContext
|
||||
this.renderTypeHint = renderTypeHint;
|
||||
}
|
||||
|
||||
public void setGui3d(boolean gui3d)
|
||||
{
|
||||
this.gui3d = gui3d;
|
||||
}
|
||||
|
||||
public void copyFrom(BlockGeometryBakingContext other)
|
||||
{
|
||||
this.customGeometry = other.customGeometry;
|
||||
this.rootTransform = other.rootTransform;
|
||||
this.visibilityData.copyFrom(other.visibilityData);
|
||||
this.renderTypeHint = other.renderTypeHint;
|
||||
this.gui3d = other.gui3d;
|
||||
}
|
||||
|
||||
public BakedModel bake(ModelBaker baker, Function<Material, TextureAtlasSprite> bakedTextureGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)
|
||||
|
||||
Reference in new issue
Block a user