类 HumanoidArmorLayer<T extends LivingEntity,M extends HumanoidModel<T>,A extends HumanoidModel<T>>
java.lang.Object
net.minecraft.client.renderer.entity.layers.RenderLayer<T,M>
net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer<T,M,A>
public class HumanoidArmorLayer<T extends LivingEntity,M extends HumanoidModel<T>,A extends HumanoidModel<T>>
extends RenderLayer<T,M>
-
字段概要
字段修饰符和类型字段说明private static final Map<String,
ResourceLocation> private final TextureAtlas
private final A
private final A
-
构造器概要
构造器构造器说明HumanoidArmorLayer
(RenderLayerParent<T, M> pRenderer, A pInnerModel, A pOuterModel, ModelManager pModelManager) -
方法概要
修饰符和类型方法说明private ResourceLocation
getArmorLocation
(ArmorItem pArmorItem, boolean pLayer2, String pSuffix) 已过时。private A
getArmorModel
(EquipmentSlot pSlot) protected Model
getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model. for HumanoidArmorLayer.getArmorResource
(Entity entity, ItemStack stack, EquipmentSlot slot, String type) More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.void
render
(PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) private void
renderArmorPiece
(PoseStack pPoseStack, MultiBufferSource pBuffer, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel) private void
renderGlint
(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, A pModel) private void
renderGlint
(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, Model pModel) private void
renderModel
(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorItem pArmorItem, A pModel, boolean pWithGlint, float pRed, float pGreen, float pBlue, String pArmorSuffix) private void
renderModel
(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorItem pArmorItem, Model pModel, boolean pWithGlint, float pRed, float pGreen, float pBlue, ResourceLocation armorResource) private void
renderTrim
(ArmorMaterial pArmorMaterial, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorTrim pTrim, A pModel, boolean pInnerTexture) private void
renderTrim
(ArmorMaterial pArmorMaterial, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorTrim pTrim, Model pModel, boolean pInnerTexture) protected void
setPartVisibility
(A pModel, EquipmentSlot pSlot) private boolean
usesInnerModel
(EquipmentSlot pSlot) 从类继承的方法 net.minecraft.client.renderer.entity.layers.RenderLayer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
字段详细资料
-
ARMOR_LOCATION_CACHE
-
innerModel
-
outerModel
-
armorTrimAtlas
-
-
构造器详细资料
-
HumanoidArmorLayer
public HumanoidArmorLayer(RenderLayerParent<T, M> pRenderer, A pInnerModel, A pOuterModel, ModelManager pModelManager)
-
-
方法详细资料
-
render
public void render(PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight, T pLivingEntity, float pLimbSwing, float pLimbSwingAmount, float pPartialTicks, float pAgeInTicks, float pNetHeadYaw, float pHeadPitch) - 指定者:
render
在类中RenderLayer<T extends LivingEntity,
M extends HumanoidModel<T>>
-
renderArmorPiece
private void renderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBuffer, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel) -
setPartVisibility
-
renderModel
private void renderModel(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorItem pArmorItem, A pModel, boolean pWithGlint, float pRed, float pGreen, float pBlue, @Nullable String pArmorSuffix) -
renderModel
private void renderModel(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorItem pArmorItem, Model pModel, boolean pWithGlint, float pRed, float pGreen, float pBlue, ResourceLocation armorResource) -
renderTrim
private void renderTrim(ArmorMaterial pArmorMaterial, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorTrim pTrim, A pModel, boolean pInnerTexture) -
renderTrim
private void renderTrim(ArmorMaterial pArmorMaterial, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, ArmorTrim pTrim, Model pModel, boolean pInnerTexture) -
renderGlint
private void renderGlint(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, A pModel) -
renderGlint
private void renderGlint(PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, Model pModel) -
getArmorModel
-
usesInnerModel
-
getArmorLocation
@Deprecated private ResourceLocation getArmorLocation(ArmorItem pArmorItem, boolean pLayer2, @Nullable String pSuffix) 已过时。 -
getArmorModelHook
Hook to allow item-sensitive armor model. for HumanoidArmorLayer. -
getArmorResource
public ResourceLocation getArmorResource(Entity entity, ItemStack stack, EquipmentSlot slot, @Nullable String type) More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.- 参数:
entity
- Entity wearing the armorstack
- ItemStack for the armorslot
- Slot ID that the item is intype
- Subtype, can be null or "overlay"- 返回:
- ResourceLocation pointing at the armor's texture
-