public class PotatoCannonItem
extends net.minecraft.item.ShootableItem
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.item.ItemStack |
CLIENT_CURRENT_AMMO |
static int |
MAX_DAMAGE |
| Constructor and Description |
|---|
PotatoCannonItem(net.minecraft.item.Item.Properties p_i48487_1_) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flag) |
boolean |
canApplyAtEnchantingTable(net.minecraft.item.ItemStack stack,
net.minecraft.enchantment.Enchantment enchantment) |
boolean |
canAttackBlock(net.minecraft.block.BlockState p_195938_1_,
net.minecraft.world.World p_195938_2_,
net.minecraft.util.math.BlockPos p_195938_3_,
net.minecraft.entity.player.PlayerEntity p_195938_4_) |
boolean |
canBeDepleted() |
java.util.function.Predicate<net.minecraft.item.ItemStack> |
getAllSupportedProjectiles() |
static java.util.Optional<net.minecraft.item.ItemStack> |
getAmmoforPreview(net.minecraft.item.ItemStack cannon) |
int |
getDefaultProjectileRange() |
double |
getDurabilityForDisplay(net.minecraft.item.ItemStack stack) |
int |
getEnchantmentValue() |
int |
getItemStackLimit(net.minecraft.item.ItemStack stack) |
int |
getMaxDamage(net.minecraft.item.ItemStack stack) |
int |
getRGBDurabilityForDisplay(net.minecraft.item.ItemStack stack) |
net.minecraft.item.UseAction |
getUseAnimation(net.minecraft.item.ItemStack stack) |
boolean |
isCannon(net.minecraft.item.ItemStack stack) |
boolean |
onEntitySwing(net.minecraft.item.ItemStack stack,
net.minecraft.entity.LivingEntity entity) |
boolean |
shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged) |
boolean |
showDurabilityBar(net.minecraft.item.ItemStack stack) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand) |
net.minecraft.util.ActionResultType |
useOn(net.minecraft.item.ItemUseContext context) |
getHeldProjectile, getSupportedHeldProjectilesallowdedIn, asItem, byBlock, byId, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isFoil, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakResetpublic static net.minecraft.item.ItemStack CLIENT_CURRENT_AMMO
public static final int MAX_DAMAGE
public PotatoCannonItem(net.minecraft.item.Item.Properties p_i48487_1_)
public boolean canAttackBlock(net.minecraft.block.BlockState p_195938_1_,
net.minecraft.world.World p_195938_2_,
net.minecraft.util.math.BlockPos p_195938_3_,
net.minecraft.entity.player.PlayerEntity p_195938_4_)
canAttackBlock in class net.minecraft.item.Itempublic boolean canApplyAtEnchantingTable(net.minecraft.item.ItemStack stack,
net.minecraft.enchantment.Enchantment enchantment)
public net.minecraft.util.ActionResultType useOn(net.minecraft.item.ItemUseContext context)
useOn in class net.minecraft.item.Itempublic int getItemStackLimit(net.minecraft.item.ItemStack stack)
public int getRGBDurabilityForDisplay(net.minecraft.item.ItemStack stack)
public double getDurabilityForDisplay(net.minecraft.item.ItemStack stack)
public boolean showDurabilityBar(net.minecraft.item.ItemStack stack)
public boolean canBeDepleted()
canBeDepleted in class net.minecraft.item.Itempublic boolean isCannon(net.minecraft.item.ItemStack stack)
public int getMaxDamage(net.minecraft.item.ItemStack stack)
public net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand)
use in class net.minecraft.item.Itempublic boolean shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged)
public static java.util.Optional<net.minecraft.item.ItemStack> getAmmoforPreview(net.minecraft.item.ItemStack cannon)
public void appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flag)
appendHoverText in class net.minecraft.item.Itempublic java.util.function.Predicate<net.minecraft.item.ItemStack> getAllSupportedProjectiles()
getAllSupportedProjectiles in class net.minecraft.item.ShootableItempublic int getEnchantmentValue()
getEnchantmentValue in class net.minecraft.item.ShootableItempublic boolean onEntitySwing(net.minecraft.item.ItemStack stack,
net.minecraft.entity.LivingEntity entity)
public net.minecraft.item.UseAction getUseAnimation(net.minecraft.item.ItemStack stack)
getUseAnimation in class net.minecraft.item.Itempublic int getDefaultProjectileRange()
getDefaultProjectileRange in class net.minecraft.item.ShootableItem