public class CuriosBackpackCapability
extends java.lang.Object
implements top.theillusivec4.curios.api.type.capability.ICurio
| Constructor and Description |
|---|
CuriosBackpackCapability(net.minecraft.item.ItemStack stack) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRender(java.lang.String identifier,
int index,
net.minecraft.entity.LivingEntity livingEntity)
Determines if the ItemStack has rendering.
|
void |
render(java.lang.String identifier,
int index,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer renderTypeBuffer,
int light,
net.minecraft.entity.LivingEntity livingEntity,
float limbSwing,
float limbSwingAmount,
float partialTicks,
float ageInTicks,
float netHeadYaw,
float headPitch)
Performs rendering of the ItemStack if
ICurio.canRender(String, int, LivingEntity)
returns true. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanEquip, canRightClickEquip, canSync, canUnequip, curioAnimate, curioBreak, curioTick, getAttributeModifiers, getDropRule, getFortuneBonus, getLootingBonus, getTagsTooltip, onEquip, onUnequip, playBreakAnimation, playRightClickEquipSound, readSyncData, showAttributesTooltip, writeSyncDatapublic CuriosBackpackCapability(net.minecraft.item.ItemStack stack)
public boolean canRender(java.lang.String identifier,
int index,
net.minecraft.entity.LivingEntity livingEntity)
top.theillusivec4.curios.api.type.capability.ICuriocanRender in interface top.theillusivec4.curios.api.type.capability.ICurioidentifier - The identifier of the ISlotType of the slotindex - The index of the slotlivingEntity - The LivingEntity that is wearing the ItemStackpublic void render(java.lang.String identifier,
int index,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer renderTypeBuffer,
int light,
net.minecraft.entity.LivingEntity livingEntity,
float limbSwing,
float limbSwingAmount,
float partialTicks,
float ageInTicks,
float netHeadYaw,
float headPitch)
top.theillusivec4.curios.api.type.capability.ICurioICurio.canRender(String, int, LivingEntity)
returns true. Note that vertical sneaking translations are automatically applied before this
rendering method is called.render in interface top.theillusivec4.curios.api.type.capability.ICurioidentifier - The identifier of the ISlotType of the slotlivingEntity - The LivingEntity that is wearing the ItemStack