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