net.minecraft.client.render.item.model

public class RangeDispatchItemModel

implements ItemModel

net.minecraft.client.renderer.item.RangeSelectItemModel
net.minecraft.class_10448
net.minecraft.client.render.item.model.RangeDispatchItemModel

Field summary

Modifier and TypeField
private static final int
LINEAR_SEARCH_THRESHOLD
field_55353
field_55353
private final NumericProperty
property
field_55354
property
private final float
scale
field_55355
scale
private final float[]
thresholds
field_55356
thresholds
private final ItemModel[]
models
field_55357
models
private final ItemModel
fallback
field_55358
fallback

Constructor summary

ModifierConstructor
private (NumericProperty property, float scale, float[] thresholds, ItemModel[] models, ItemModel fallback)

Method summary

Modifier and TypeMethod
private static int
lastIndexLessOrEqual(float[] haystack, float needle)
method_65622(float[] arg0, float arg1)
getIndex(float[] thresholds, float value)
public void
update(ItemStackRenderState output, ItemStack item, ItemModelResolver resolver, ItemDisplayContext displayContext, ClientLevel level, ItemOwner owner, int seed)
method_65584(class_10444 arg0, class_1799 arg1, class_10442 arg2, class_811 arg3, class_638 arg4, class_11566 arg5, int arg6)
update(ItemRenderState arg0, ItemStack arg1, ItemModelManager arg2, ItemDisplayContext arg3, ClientWorld arg4, HeldItemContext arg5, int arg6)