Modifier and Type | Method and Description |
---|---|
protected A |
ArmorLayer.getArmorModelHook(T entity,
ItemStack itemStack,
EquipmentSlotType slot,
A model)
Hook to allow item-sensitive armor model.
|
protected A |
BipedArmorLayer.getArmorModelHook(T entity,
ItemStack itemStack,
EquipmentSlotType slot,
A model) |
ResourceLocation |
ArmorLayer.getArmorResource(Entity entity,
ItemStack stack,
EquipmentSlotType 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.
|
A |
ArmorLayer.getModelFromSlot(EquipmentSlotType slotIn) |
private boolean |
ArmorLayer.isLegSlot(EquipmentSlotType slotIn) |
private void |
ArmorLayer.renderArmorPart(MatrixStack matrixStackIn,
IRenderTypeBuffer bufferIn,
T entityLivingBaseIn,
float limbSwing,
float limbSwingAmount,
float partialTicks,
float ageInTicks,
float netHeadYaw,
float headPitch,
EquipmentSlotType slotIn,
int packedLightIn) |
protected abstract void |
ArmorLayer.setModelSlotVisible(A modelIn,
EquipmentSlotType slotIn) |
protected void |
BipedArmorLayer.setModelSlotVisible(A modelIn,
EquipmentSlotType slotIn) |
Modifier and Type | Method and Description |
---|---|
private static ItemStack |
LootCommand.func_218872_a(CommandSource p_218872_0_,
EquipmentSlotType p_218872_1_) |
Modifier and Type | Field and Description |
---|---|
private EquipmentSlotType[] |
Enchantment.applicableEquipmentTypes |
private static EquipmentSlotType[] |
Enchantments.ARMOR_SLOTS |
Modifier and Type | Method and Description |
---|---|
java.util.Map<EquipmentSlotType,ItemStack> |
Enchantment.getEntityEquipment(LivingEntity livingEntityIn) |
static java.util.Map.Entry<EquipmentSlotType,ItemStack> |
EnchantmentHelper.getRandomItemWithEnchantment(Enchantment targetEnchantment,
LivingEntity entityIn) |
Modifier and Type | Method and Description |
---|---|
static EquipmentSlotType |
MobEntity.getSlotForItemStack(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
private static byte |
LivingEntity.equipmentSlotToEntityState(EquipmentSlotType p_213350_0_) |
static Item |
MobEntity.getArmorByChance(EquipmentSlotType slotIn,
int chance) |
protected float |
MobEntity.getDropChance(EquipmentSlotType slotIn) |
abstract ItemStack |
LivingEntity.getItemStackFromSlot(EquipmentSlotType slotIn) |
ItemStack |
MobEntity.getItemStackFromSlot(EquipmentSlotType slotIn) |
boolean |
LivingEntity.hasItemInSlot(EquipmentSlotType slotIn) |
static boolean |
MobEntity.isItemStackInSlot(EquipmentSlotType slotIn,
ItemStack stack) |
void |
LivingEntity.sendBreakAnimation(EquipmentSlotType p_213361_1_) |
void |
MobEntity.setDropChance(EquipmentSlotType slotIn,
float chance) |
abstract void |
LivingEntity.setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
void |
MobEntity.setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
void |
Entity.setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
protected boolean |
MobEntity.shouldExchangeEquipment(ItemStack candidate,
ItemStack existing,
EquipmentSlotType slotTypeIn) |
Modifier and Type | Method and Description |
---|---|
private EquipmentSlotType |
ArmorStandEntity.getClickedSlot(Vec3d p_190772_1_) |
Modifier and Type | Method and Description |
---|---|
private boolean |
ArmorStandEntity.func_226529_a_(PlayerEntity p_226529_1_,
EquipmentSlotType p_226529_2_,
ItemStack p_226529_3_,
Hand p_226529_4_) |
ItemStack |
ArmorStandEntity.getItemStackFromSlot(EquipmentSlotType slotIn) |
private boolean |
ArmorStandEntity.isDisabled(EquipmentSlotType slotIn) |
void |
ArmorStandEntity.setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractSkeletonEntity.setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
protected boolean |
DrownedEntity.shouldExchangeEquipment(ItemStack candidate,
ItemStack existing,
EquipmentSlotType slotTypeIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
PlayerEntity.getItemStackFromSlot(EquipmentSlotType slotIn) |
void |
PlayerEntity.setItemStackToSlot(EquipmentSlotType slotIn,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
static EquipmentSlotType |
EquipmentSlotType.fromSlotTypeAndIndex(EquipmentSlotType.Group slotTypeIn,
int slotIndexIn) |
static EquipmentSlotType |
EquipmentSlotType.fromString(java.lang.String targetName) |
static EquipmentSlotType |
EquipmentSlotType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EquipmentSlotType[] |
EquipmentSlotType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
private static EquipmentSlotType[] |
PlayerContainer.VALID_EQUIPMENT_SLOTS |
Modifier and Type | Field and Description |
---|---|
protected EquipmentSlotType |
ArmorItem.slot |
Modifier and Type | Method and Description |
---|---|
EquipmentSlotType |
ArmorItem.getEquipmentSlot() |
Modifier and Type | Method and Description |
---|---|
void |
ItemStack.addAttributeModifier(java.lang.String attributeName,
AttributeModifier modifier,
EquipmentSlotType equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
SwordItem.getAttributeModifiers(EquipmentSlotType equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ArmorItem.getAttributeModifiers(EquipmentSlotType equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
HoeItem.getAttributeModifiers(EquipmentSlotType equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ToolItem.getAttributeModifiers(EquipmentSlotType equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
TridentItem.getAttributeModifiers(EquipmentSlotType equipmentSlot) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
Item.getAttributeModifiers(EquipmentSlotType equipmentSlot)
Deprecated.
|
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
ItemStack.getAttributeModifiers(EquipmentSlotType equipmentSlot) |
int |
ArmorMaterial.getDamageReductionAmount(EquipmentSlotType slotIn) |
int |
IArmorMaterial.getDamageReductionAmount(EquipmentSlotType slotIn) |
int |
ArmorMaterial.getDurability(EquipmentSlotType slotIn) |
int |
IArmorMaterial.getDurability(EquipmentSlotType slotIn) |
Constructor and Description |
---|
ArmorItem(IArmorMaterial materialIn,
EquipmentSlotType slot,
Item.Properties builder) |
DyeableArmorItem(IArmorMaterial p_i50048_1_,
EquipmentSlotType p_i50048_2_,
Item.Properties p_i50048_3_) |
Modifier and Type | Field and Description |
---|---|
private EquipmentSlotType |
SEntityEquipmentPacket.equipmentSlot |
Modifier and Type | Method and Description |
---|---|
EquipmentSlotType |
SEntityEquipmentPacket.getEquipmentSlot() |
Constructor and Description |
---|
SEntityEquipmentPacket(int entityIdIn,
EquipmentSlotType equipmentSlotIn,
ItemStack itemStackIn) |
Modifier and Type | Field and Description |
---|---|
private EquipmentSlotType[] |
SetAttributes.Modifier.slots |
Constructor and Description |
---|
Modifier(java.lang.String p_i50835_1_,
java.lang.String p_i50835_2_,
AttributeModifier.Operation p_i50835_3_,
RandomValueRange p_i50835_4_,
EquipmentSlotType[] p_i50835_5_,
java.util.UUID p_i50835_6_) |
Modifier and Type | Method and Description |
---|---|
static <A extends BipedModel<?>> |
ForgeHooksClient.getArmorModel(LivingEntity entityLiving,
ItemStack itemStack,
EquipmentSlotType slot,
A _default) |
static java.lang.String |
ForgeHooksClient.getArmorTexture(Entity entity,
ItemStack armor,
java.lang.String _default,
EquipmentSlotType slot,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
default EquipmentSlotType |
IForgeItemStack.getEquipmentSlot()
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
net.minecraft.entity.EntityLiving#getSlotForItemStack(ItemStack) . |
default EquipmentSlotType |
IForgeItem.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
net.minecraft.entity.EntityLiving#getSlotForItemStack(ItemStack) . |
Modifier and Type | Method and Description |
---|---|
default boolean |
IForgeItemStack.canEquip(EquipmentSlotType armorType,
Entity entity)
Determines if the specific ItemStack can be placed in the specified armor
slot, for the entity.
|
default boolean |
IForgeItem.canEquip(ItemStack stack,
EquipmentSlotType armorType,
Entity entity)
Determines if the specific ItemStack can be placed in the specified armor
slot, for the entity.
|
default <A extends BipedModel<?>> |
IForgeItem.getArmorModel(LivingEntity entityLiving,
ItemStack itemStack,
EquipmentSlotType armorSlot,
A _default)
Override this method to have an item handle its own armor rendering.
|
default java.lang.String |
IForgeItem.getArmorTexture(ItemStack stack,
Entity entity,
EquipmentSlotType slot,
java.lang.String type)
Called by RenderBiped and RenderPlayer to determine the armor texture that
should be use for the currently equipped item.
|
default com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
IForgeItem.getAttributeModifiers(EquipmentSlotType slot,
ItemStack stack)
ItemStack sensitive version of getItemAttributeModifiers
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
GravityAttributeTest.ItemGravityStick.getAttributeModifiers(EquipmentSlotType slot) |
Constructor and Description |
---|
SmelterEnchantment(Enchantment.Rarity rarityIn,
EnchantmentType typeIn,
EquipmentSlotType... slots) |
Modifier and Type | Method and Description |
---|---|
EquipmentSlotType |
CustomElytraTest.CustomElytra.getEquipmentSlot(ItemStack stack) |
Modifier and Type | Field and Description |
---|---|
private EquipmentSlotType |
LivingEquipmentChangeEvent.slot |
Modifier and Type | Method and Description |
---|---|
EquipmentSlotType |
LivingEquipmentChangeEvent.getSlot() |
Constructor and Description |
---|
LivingEquipmentChangeEvent(LivingEntity entity,
EquipmentSlotType slot,
ItemStack from,
ItemStack to) |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<EquipmentSlotType> |
EntityEquipmentInvWrapper.slots
The slots exposed by this wrapper, with
EntityEquipmentSlot#index as the index. |
Modifier and Type | Method and Description |
---|---|
protected EquipmentSlotType |
EntityEquipmentInvWrapper.validateSlotIndex(int slot) |