public class SafetyGogglesItem extends HeldItem implements IEquippable
Constructor and Description |
---|
SafetyGogglesItem()
Initializes the held item.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsIncomingAttack(PixelmonWrapper pokemon,
PixelmonWrapper user,
Attack a)
Determines whether the holder can be hit by an incoming attack.
|
boolean |
canEquip(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.EquipmentSlotType armorType,
net.minecraft.entity.Entity entity) |
net.minecraft.inventory.EquipmentSlotType |
getEquipmentSlot(net.minecraft.item.ItemStack stack) |
net.minecraft.item.Item |
getEquippableItem() |
java.lang.String |
getEquippableModelKey() |
net.minecraft.util.ResourceLocation |
getEquippableTexture() |
adjustCritStage, affectMultiturnMove, allowsIncomingAttackMessage, applyEffectAfterAllTargets, applyEffectInDaycare, applyEffectOnContact, applyPostSwitchEffect, applyRepeatedEffect, applyRepeatedEffectAfterStatus, applySwitchInEffect, applySwitchOutEffect, canEatBerry, canUseItem, dealtDamage, eatBerry, getEffectiveTypes, getHeldItemType, getItemHeld, hasNegativeEffect, interact, isBerry, isItemOfType, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyPriority, modifyStats, modifyWeight, onAttackUsed, onEndOfBattle, onGlobalStatusAdded, onMiss, onStartOfBattle, onStatDecrease, onStatIncrease, onStatModified, onStatusAdded, onTerrainSwitch, onWeatherSwitch, postProcessAttackUser, postProcessDamagingAttackTarget, postProcessDamagingAttackUser, preProcessDamagingAttackTarget, preProcessDamagingAttackUser, tookDamage
appendHoverText, causeTempt, fillItemCategory, getLocalizedName, getTooltipText, getTooltipText, getUseAnimation, hideFromSearches, isBookEnchantable, isDrink, isEdible, isEnchantable, isFoil, isSearchable, setDrink, setHasEffect, setTempt, useFromBag, useFromBag
allowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoad
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public boolean allowsIncomingAttack(PixelmonWrapper pokemon, PixelmonWrapper user, Attack a)
HeldItem
allowsIncomingAttack
in class HeldItem
pokemon
- The holder.user
- The attack's user.a
- The attack.public net.minecraft.inventory.EquipmentSlotType getEquipmentSlot(net.minecraft.item.ItemStack stack)
getEquipmentSlot
in interface IEquippable
getEquipmentSlot
in interface net.minecraftforge.common.extensions.IForgeItem
public java.lang.String getEquippableModelKey()
getEquippableModelKey
in interface IEquippable
public net.minecraft.util.ResourceLocation getEquippableTexture()
getEquippableTexture
in interface IEquippable
public net.minecraft.item.Item getEquippableItem()
getEquippableItem
in interface IEquippable
public boolean canEquip(net.minecraft.item.ItemStack stack, net.minecraft.inventory.EquipmentSlotType armorType, net.minecraft.entity.Entity entity)
canEquip
in interface net.minecraftforge.common.extensions.IForgeItem