mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-17 02:45:19 +00:00
Make baked model constructors public
Easier to extend them
This commit is contained in:
1 parent
448498d7ed
commit
dbfcff12a9
5 files changed
+11
-4
No files matched your search
@@ -158,7 +158,7 @@ public class RetexturedModel implements IModelGeometry<RetexturedModel> {
|
||||
/** List of texture names that are retextured */
|
||||
private final Set<String> retextured;
|
||||
|
||||
protected BakedModel(IBakedModel baked, IModelConfiguration owner, SimpleBlockModel model, IModelTransform transform, Set<String> retextured) {
|
||||
public BakedModel(IBakedModel baked, IModelConfiguration owner, SimpleBlockModel model, IModelTransform transform, Set<String> retextured) {
|
||||
super(baked);
|
||||
this.model = model;
|
||||
this.owner = owner;
|
||||
|
||||
@@ -143,7 +143,7 @@ public class ConnectedModel implements IModelGeometry<ConnectedModel> {
|
||||
private final IBakedModel[] cache = new IBakedModel[64];
|
||||
private final Map<String,String> nameMappingCache = new HashMap<>();
|
||||
private final ModelTextureIteratable modelTextures;
|
||||
protected BakedModel(ConnectedModel parent, IModelConfiguration owner, IModelTransform transforms, IBakedModel baked) {
|
||||
public BakedModel(ConnectedModel parent, IModelConfiguration owner, IModelTransform transforms, IBakedModel baked) {
|
||||
super(baked);
|
||||
this.parent = parent;
|
||||
this.owner = owner;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
@ParametersAreNonnullByDefault
|
||||
@MethodsReturnNonnullByDefault
|
||||
package slimeknights.mantle.client.model.data;
|
||||
|
||||
import mcp.MethodsReturnNonnullByDefault;
|
||||
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
@@ -49,7 +49,7 @@ public class FluidsModel implements IModelGeometry<FluidsModel> {
|
||||
public static class BakedModel extends BakedModelWrapper<IBakedModel> {
|
||||
@Getter
|
||||
private final List<FluidCuboid> fluids;
|
||||
private BakedModel(IBakedModel originalModel, List<FluidCuboid> fluids) {
|
||||
public BakedModel(IBakedModel originalModel, List<FluidCuboid> fluids) {
|
||||
super(originalModel);
|
||||
this.fluids = fluids;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public class InventoryModel implements IModelGeometry<InventoryModel> {
|
||||
public static class BakedModel extends BakedModelWrapper<IBakedModel> {
|
||||
@Getter
|
||||
private final List<ModelItem> items;
|
||||
protected BakedModel(IBakedModel originalModel, List<ModelItem> items) {
|
||||
public BakedModel(IBakedModel originalModel, List<ModelItem> items) {
|
||||
super(originalModel);
|
||||
this.items = items;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user