Class ModelOverrideList
java.lang.Object
net.minecraft.client.render.model.json.ModelOverrideList
@Environment(CLIENT) public class ModelOverrideList extends Object
-
Field Summary
Fields Modifier and Type Field Description static ModelOverrideList
EMPTY
private List<BakedModel>
models
private List<ModelOverride>
overrides
-
Constructor Summary
Constructors Modifier Constructor Description private
ModelOverrideList()
ModelOverrideList(ModelLoader modelLoader, JsonUnbakedModel unbakedModel, Function<Identifier,UnbakedModel> unbakedModelGetter, List<ModelOverride> overrides)
-
Method Summary
Modifier and Type Method Description BakedModel
apply(BakedModel model, ItemStack stack, ClientWorld world, LivingEntity entity)
-
Field Details
-
EMPTY
-
overrides
-
models
-
-
Constructor Details
-
ModelOverrideList
private ModelOverrideList() -
ModelOverrideList
public ModelOverrideList(ModelLoader modelLoader, JsonUnbakedModel unbakedModel, Function<Identifier,UnbakedModel> unbakedModelGetter, List<ModelOverride> overrides)
-
-
Method Details
-
apply
@Nullable public BakedModel apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity)
-