Class BipedArmorLayer<T extends LivingEntity,M extends BipedModel<T>,A extends BipedModel<T>>
java.lang.Object
net.minecraft.client.renderer.entity.layers.LayerRenderer<T,M>
net.minecraft.client.renderer.entity.layers.BipedArmorLayer<T,M,A>
public class BipedArmorLayer<T extends LivingEntity,M extends BipedModel<T>,A extends BipedModel<T>>
extends LayerRenderer<T,M>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String,ResourceLocation> private final Aprivate final A -
Constructor Summary
ConstructorsConstructorDescriptionBipedArmorLayer(IEntityRenderer<T, M> p_i50936_1_, A p_i50936_2_, A p_i50936_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate ResourceLocationgetArmorLocation(ArmorItem p_241737_1_, boolean p_241737_2_, String p_241737_3_) Deprecated.private AgetArmorModel(EquipmentSlotType p_241736_1_) protected AgetArmorModelHook(T entity, ItemStack itemStack, EquipmentSlotType slot, A model) Hook to allow item-sensitive armor model.getArmorResource(Entity entity, ItemStack stack, EquipmentSlotType slot, String type) More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.voidrender(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_) private voidrenderArmorPiece(MatrixStack p_241739_1_, IRenderTypeBuffer p_241739_2_, T p_241739_3_, EquipmentSlotType p_241739_4_, int p_241739_5_, A p_241739_6_) private voidrenderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, boolean p_241738_5_, A p_241738_6_, float p_241738_8_, float p_241738_9_, float p_241738_10_, ResourceLocation armorResource) private voidrenderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, ArmorItem p_241738_4_, boolean p_241738_5_, A p_241738_6_, boolean p_241738_7_, float p_241738_8_, float p_241738_9_, float p_241738_10_, String p_241738_11_) protected voidsetPartVisibility(A p_188359_1_, EquipmentSlotType p_188359_2_) private booleanusesInnerModel(EquipmentSlotType p_188363_1_) Methods inherited from class net.minecraft.client.renderer.entity.layers.LayerRenderer
coloredCutoutModelCopyLayerRender, getParentModel, getTextureLocation, renderColoredCutoutModel
-
Field Details
-
ARMOR_LOCATION_CACHE
-
innerModel
-
outerModel
-
-
Constructor Details
-
BipedArmorLayer
-
-
Method Details
-
render
public void render(MatrixStack p_225628_1_, IRenderTypeBuffer p_225628_2_, int p_225628_3_, T p_225628_4_, float p_225628_5_, float p_225628_6_, float p_225628_7_, float p_225628_8_, float p_225628_9_, float p_225628_10_) - Specified by:
renderin classLayerRenderer<T extends LivingEntity,M extends BipedModel<T>>
-
renderArmorPiece
private void renderArmorPiece(MatrixStack p_241739_1_, IRenderTypeBuffer p_241739_2_, T p_241739_3_, EquipmentSlotType p_241739_4_, int p_241739_5_, A p_241739_6_) -
setPartVisibility
-
renderModel
private void renderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, ArmorItem p_241738_4_, boolean p_241738_5_, A p_241738_6_, boolean p_241738_7_, float p_241738_8_, float p_241738_9_, float p_241738_10_, @Nullable String p_241738_11_) -
renderModel
private void renderModel(MatrixStack p_241738_1_, IRenderTypeBuffer p_241738_2_, int p_241738_3_, boolean p_241738_5_, A p_241738_6_, float p_241738_8_, float p_241738_9_, float p_241738_10_, ResourceLocation armorResource) -
getArmorModel
-
usesInnerModel
-
getArmorLocation
@Deprecated private ResourceLocation getArmorLocation(ArmorItem p_241737_1_, boolean p_241737_2_, @Nullable String p_241737_3_) Deprecated. -
getArmorModelHook
Hook to allow item-sensitive armor model. for LayerBipedArmor. -
getArmorResource
public ResourceLocation getArmorResource(Entity entity, ItemStack stack, EquipmentSlotType 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.- Parameters:
entity- Entity wearing the armorstack- ItemStack for the armorslot- Slot ID that the item is intype- Subtype, can be null or "overlay"- Returns:
- ResourceLocation pointing at the armor's texture
-