类 ItemModelResolver
java.lang.Object
net.minecraft.client.renderer.item.ItemModelResolver
-
字段概要
字段修饰符和类型字段说明private final Function
<ResourceLocation, ClientItem.Properties> private final Function
<ResourceLocation, ItemModel> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
appendItemLayers
(ItemStackRenderState p_376475_, ItemStack p_375988_, ItemDisplayContext p_377575_, Level p_376809_, LivingEntity p_376742_, int p_377982_) private static void
fixupSkullProfile
(ItemStack p_378393_) boolean
shouldPlaySwapAnimation
(ItemStack p_375787_) void
updateForLiving
(ItemStackRenderState p_375741_, ItemStack p_375493_, ItemDisplayContext p_375922_, boolean p_377322_, LivingEntity p_376619_) void
updateForNonLiving
(ItemStackRenderState p_375853_, ItemStack p_378808_, ItemDisplayContext p_378112_, Entity p_376596_) void
updateForTopItem
(ItemStackRenderState p_376095_, ItemStack p_376083_, ItemDisplayContext p_378127_, boolean p_377828_, Level p_378324_, LivingEntity p_377728_, int p_377306_)
-
字段详细资料
-
modelGetter
-
clientProperties
-
-
构造器详细资料
-
ItemModelResolver
-
-
方法详细资料
-
updateForLiving
public void updateForLiving(ItemStackRenderState p_375741_, ItemStack p_375493_, ItemDisplayContext p_375922_, boolean p_377322_, LivingEntity p_376619_) -
updateForNonLiving
public void updateForNonLiving(ItemStackRenderState p_375853_, ItemStack p_378808_, ItemDisplayContext p_378112_, Entity p_376596_) -
updateForTopItem
public void updateForTopItem(ItemStackRenderState p_376095_, ItemStack p_376083_, ItemDisplayContext p_378127_, boolean p_377828_, @Nullable Level p_378324_, @Nullable LivingEntity p_377728_, int p_377306_) -
fixupSkullProfile
-
appendItemLayers
public void appendItemLayers(ItemStackRenderState p_376475_, ItemStack p_375988_, ItemDisplayContext p_377575_, @Nullable Level p_376809_, @Nullable LivingEntity p_376742_, int p_377982_) -
shouldPlaySwapAnimation
-