@Environment(value=CLIENT) public class ModelOverride extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ModelOverride.Deserializer |
Modifier and Type | Field and Description |
---|---|
private Identifier |
modelId |
private Map<Identifier,Float> |
predicateToThresholds |
Constructor and Description |
---|
ModelOverride(Identifier modelId,
Map<Identifier,Float> predicateToThresholds) |
Modifier and Type | Method and Description |
---|---|
Identifier |
getModelId() |
(package private) boolean |
matches(ItemStack stack,
ClientWorld world,
LivingEntity entity) |
private final Identifier modelId
private final Map<Identifier,Float> predicateToThresholds
public ModelOverride(Identifier modelId, Map<Identifier,Float> predicateToThresholds)
public Identifier getModelId()
boolean matches(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity)