@Environment(value=CLIENT) public class ModelOverrideList extends Object
Modifier and Type | Field and Description |
---|---|
static ModelOverrideList |
EMPTY |
private List<BakedModel> |
models |
private List<ModelOverride> |
overrides |
Modifier | Constructor and Description |
---|---|
private |
ModelOverrideList() |
|
ModelOverrideList(ModelLoader modelLoader,
JsonUnbakedModel unbakedModel,
Function<Identifier,UnbakedModel> unbakedModelGetter,
List<ModelOverride> overrides) |
Modifier and Type | Method and Description |
---|---|
BakedModel |
apply(BakedModel model,
ItemStack stack,
ClientWorld world,
LivingEntity entity) |
public static final ModelOverrideList EMPTY
private final List<ModelOverride> overrides
private final List<BakedModel> models
private ModelOverrideList()
public ModelOverrideList(ModelLoader modelLoader, JsonUnbakedModel unbakedModel, Function<Identifier,UnbakedModel> unbakedModelGetter, List<ModelOverride> overrides)
@Nullable public BakedModel apply(BakedModel model, ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity)