public abstract class ShootableItem extends Item
Item.Properties
Modifier and Type | Field and Description |
---|---|
static java.util.function.Predicate<ItemStack> |
ARROWS |
static java.util.function.Predicate<ItemStack> |
ARROWS_OR_FIREWORKS |
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, BLOCK_TO_ITEM, canRepair, group, properties, random
delegate
Constructor and Description |
---|
ShootableItem(Item.Properties p_i50040_1_) |
Modifier and Type | Method and Description |
---|---|
java.util.function.Predicate<ItemStack> |
getAmmoPredicate() |
static ItemStack |
getHeldAmmo(LivingEntity living,
java.util.function.Predicate<ItemStack> isAmmo) |
abstract java.util.function.Predicate<ItemStack> |
getInventoryAmmoPredicate() |
int |
getItemEnchantability() |
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, getDrinkSound, getEatSound, getFood, getGroup, getHarvestLevel, getIdFromItem, getIsRepairable, getItemById, getItemFromBlock, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getPropertyGetter, getRarity, getTags, getToolTypes, getTranslationKey, getTranslationKey, getUseAction, getUseDuration, hasContainerItem, hasCustomProperties, hasEffect, hitEntity, inventoryTick, isComplex, isCrossbow, isDamageable, isEnchantable, isFood, isIn, isInGroup, isRepairable, itemInteractionForEntity, onBlockDestroyed, onCreated, onItemRightClick, onItemUse, onItemUseFinish, onPlayerStoppedUsing, onUse, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamaged, isShield, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBar
public static final java.util.function.Predicate<ItemStack> ARROWS
public static final java.util.function.Predicate<ItemStack> ARROWS_OR_FIREWORKS
public ShootableItem(Item.Properties p_i50040_1_)
public java.util.function.Predicate<ItemStack> getAmmoPredicate()
public abstract java.util.function.Predicate<ItemStack> getInventoryAmmoPredicate()
public static ItemStack getHeldAmmo(LivingEntity living, java.util.function.Predicate<ItemStack> isAmmo)
public int getItemEnchantability()
getItemEnchantability
in class Item