public abstract class ShootableItem extends Item
Item.Properties
修飾子とタイプ | フィールドと説明 |
---|---|
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
コンストラクタと説明 |
---|
ShootableItem(Item.Properties p_i50040_1_) |
修飾子とタイプ | メソッドと説明 |
---|---|
java.util.function.Predicate<ItemStack> |
getAmmoPredicate() |
static ItemStack |
getHeldAmmo(LivingEntity living,
java.util.function.Predicate<ItemStack> isAmmo) |
abstract java.util.function.Predicate<ItemStack> |
getInventoryAmmoPredicate()
Get the predicate to match ammunition when searching the player's inventory, not their main/offhand
|
int |
getItemEnchantability()
Return the enchantability factor of the item, most of the time is based on material.
|
addInformation, addPropertyOverride, asItem, canHarvestBlock, canPlayerBreakBlockWhileHolding, fillItemGroup, func_219972_a, func_225519_S__, func_225520_U__, getAttributeModifiers, getContainerItem, getDefaultInstance, getDefaultTranslationKey, getDestroySpeed, getDisplayName, 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, rayTrace, shouldSyncTag, toString, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canApplyAtEnchantingTable, canContinueUsing, canDisableShield, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, 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
クラス内 Item