Modifier and Type | Method and Description |
---|---|
protected ModelBiped |
LayerBipedArmor.getArmorModelHook(EntityLivingBase entity,
ItemStack itemStack,
EntityEquipmentSlot slot,
ModelBiped model) |
protected T |
LayerArmorBase.getArmorModelHook(EntityLivingBase entity,
ItemStack itemStack,
EntityEquipmentSlot slot,
T model)
Hook to allow item-sensitive armor model.
|
ResourceLocation |
LayerArmorBase.getArmorResource(Entity entity,
ItemStack stack,
EntityEquipmentSlot slot,
java.lang.String type)
More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.
|
T |
LayerArmorBase.getModelFromSlot(EntityEquipmentSlot slotIn) |
private boolean |
LayerArmorBase.isLegSlot(EntityEquipmentSlot slotIn) |
private void |
LayerArmorBase.renderArmorLayer(EntityLivingBase entityLivingBaseIn,
float limbSwing,
float limbSwingAmount,
float partialTicks,
float ageInTicks,
float netHeadYaw,
float headPitch,
float scale,
EntityEquipmentSlot slotIn) |
protected void |
LayerBipedArmor.setModelSlotVisible(ModelBiped p_188359_1_,
EntityEquipmentSlot slotIn) |
protected abstract void |
LayerArmorBase.setModelSlotVisible(T p_188359_1_,
EntityEquipmentSlot slotIn) |
Modifier and Type | Field and Description |
---|---|
private EntityEquipmentSlot[] |
Enchantment.applicableEquipmentTypes |
Modifier and Type | Method and Description |
---|---|
static EntityEquipmentSlot |
EntityLiving.getSlotForItemStack(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
static Item |
EntityLiving.getArmorByChance(EntityEquipmentSlot slotIn,
int chance) |
ItemStack |
EntityLiving.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
abstract ItemStack |
EntityLivingBase.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
boolean |
EntityLivingBase.hasItemInSlot(EntityEquipmentSlot p_190630_1_) |
static boolean |
EntityLiving.isItemStackInSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
EntityLiving.setDropChance(EntityEquipmentSlot slotIn,
float chance) |
void |
Entity.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
void |
EntityLiving.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
abstract void |
EntityLivingBase.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
protected EntityEquipmentSlot |
EntityArmorStand.getClickedSlot(Vec3d p_190772_1_) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
EntityArmorStand.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
private boolean |
EntityArmorStand.isDisabled(EntityEquipmentSlot slotIn) |
void |
EntityArmorStand.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
private void |
EntityArmorStand.swapItem(EntityPlayer player,
EntityEquipmentSlot p_184795_2_,
ItemStack p_184795_3_,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractSkeleton.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
EntityPlayer.getItemStackFromSlot(EntityEquipmentSlot slotIn) |
void |
EntityPlayer.setItemStackToSlot(EntityEquipmentSlot slotIn,
ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private static EntityEquipmentSlot[] |
ContainerPlayer.VALID_EQUIPMENT_SLOTS |
Modifier and Type | Method and Description |
---|---|
static EntityEquipmentSlot |
EntityEquipmentSlot.fromString(java.lang.String targetName) |
static EntityEquipmentSlot |
EntityEquipmentSlot.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityEquipmentSlot[] |
EntityEquipmentSlot.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
EntityEquipmentSlot |
ItemArmor.armorType |
Modifier and Type | Method and Description |
---|---|
EntityEquipmentSlot |
ItemArmor.getEquipmentSlot() |
EntityEquipmentSlot |
Item.getEquipmentSlot(ItemStack stack)
Override this to set a non-default armor slot for an ItemStack, but
do not use this to get the armor slot of said stack; for that, use
EntityLiving.getSlotForItemStack(ItemStack) . |
Modifier and Type | Method and Description |
---|---|
void |
ItemStack.addAttributeModifier(java.lang.String attributeName,
AttributeModifier modifier,
EntityEquipmentSlot equipmentSlot) |
ModelBiped |
Item.getArmorModel(EntityLivingBase entityLiving,
ItemStack itemStack,
EntityEquipmentSlot armorSlot,
ModelBiped _default)
Override this method to have an item handle its own armor rendering.
|
java.lang.String |
Item.getArmorTexture(ItemStack stack,
Entity entity,
EntityEquipmentSlot slot,
java.lang.String type)
Called by RenderBiped and RenderPlayer to determine the armor texture that
should be use for the currently equipped item.
|
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ItemStack.getAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
Item.getAttributeModifiers(EntityEquipmentSlot slot,
ItemStack stack)
ItemStack sensitive version of getItemAttributeModifiers
|
int |
ItemArmor.ArmorMaterial.getDamageReductionAmount(EntityEquipmentSlot armorType) |
int |
ItemArmor.ArmorMaterial.getDurability(EntityEquipmentSlot armorType) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ItemArmor.getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
Item.getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot)
Deprecated.
|
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ItemHoe.getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ItemTool.getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ItemSword.getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) |
boolean |
Item.isValidArmor(ItemStack stack,
EntityEquipmentSlot armorType,
Entity entity)
Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.
|
Constructor and Description |
---|
ItemArmor(ItemArmor.ArmorMaterial materialIn,
int renderIndexIn,
EntityEquipmentSlot equipmentSlotIn) |
Modifier and Type | Field and Description |
---|---|
private EntityEquipmentSlot |
SPacketEntityEquipment.equipmentSlot |
Modifier and Type | Method and Description |
---|---|
EntityEquipmentSlot |
SPacketEntityEquipment.getEquipmentSlot() |
Constructor and Description |
---|
SPacketEntityEquipment(int entityIdIn,
EntityEquipmentSlot equipmentSlotIn,
ItemStack itemStackIn) |
Modifier and Type | Field and Description |
---|---|
private EntityEquipmentSlot[] |
SetAttributes.Modifier.slots |
Constructor and Description |
---|
Modifier(java.lang.String modifName,
java.lang.String attrName,
int operationIn,
RandomValueRange randomAmount,
EntityEquipmentSlot[] slotsIn,
java.util.UUID uuidIn) |
Modifier and Type | Method and Description |
---|---|
static ModelBiped |
ForgeHooksClient.getArmorModel(EntityLivingBase entityLiving,
ItemStack itemStack,
EntityEquipmentSlot slot,
ModelBiped _default) |
static java.lang.String |
ForgeHooksClient.getArmorTexture(Entity entity,
ItemStack armor,
java.lang.String _default,
EntityEquipmentSlot slot,
java.lang.String type) |
Modifier and Type | Field and Description |
---|---|
private EntityEquipmentSlot |
LivingEquipmentChangeEvent.slot |
Modifier and Type | Method and Description |
---|---|
EntityEquipmentSlot |
LivingEquipmentChangeEvent.getSlot() |
Constructor and Description |
---|
LivingEquipmentChangeEvent(EntityLivingBase entity,
EntityEquipmentSlot slot,
ItemStack from,
ItemStack to) |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<EntityEquipmentSlot> |
EntityEquipmentInvWrapper.slots
The slots exposed by this wrapper, with
index as the index. |
Modifier and Type | Method and Description |
---|---|
protected EntityEquipmentSlot |
EntityEquipmentInvWrapper.validateSlotIndex(int slot) |