Class DragonsBreathCannonItem
java.lang.Object
net.minecraft.world.item.Item
tech.anonymoushacker1279.immersiveweapons.item.gun.AbstractGunItem
tech.anonymoushacker1279.immersiveweapons.item.gun.SimplePistolItem
tech.anonymoushacker1279.immersiveweapons.item.gun.HandCannonItem
tech.anonymoushacker1279.immersiveweapons.item.gun.DragonsBreathCannonItem
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.neoforged.neoforge.common.extensions.IItemExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class tech.anonymoushacker1279.immersiveweapons.item.gun.AbstractGunItem
AbstractGunItem.PowderTypeNested classes/interfaces inherited from class net.minecraft.world.item.Item
net.minecraft.world.item.Item.Properties, net.minecraft.world.item.Item.TooltipContext -
Field Summary
Fields inherited from class tech.anonymoushacker1279.immersiveweapons.item.gun.AbstractGunItem
CANNONBALLS, DRAGON_FIREBALLS, FLAMMABLE_POWDERS, FLARES, MUSKET_BALLS, POWDER_TYPEFields inherited from class net.minecraft.world.item.Item
ABSOLUTE_MAX_STACK_SIZE, APPROXIMATELY_INFINITE_USE_DURATION, BASE_ATTACK_DAMAGE_ID, BASE_ATTACK_SPEED_ID, BY_BLOCK, canCombineRepair, CODEC, DEFAULT_MAX_STACK_SIZE, descriptionId, MAX_BAR_WIDTH, STREAM_CODECFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionDragonsBreathCannonItem(net.minecraft.world.item.Item.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemGet the default ammunition.floatintnet.minecraft.sounds.SoundEventGet the fire sound.floatPredicate<net.minecraft.world.item.ItemStack> Get the predicate to match ammunition when searching the player's inventory, not their main/offhandfloatfloatvoidprepareBulletForFire(net.minecraft.world.item.ItemStack gun, BulletEntity bulletEntity, net.minecraft.world.entity.LivingEntity shooter, float powderModifier) Methods inherited from class tech.anonymoushacker1279.immersiveweapons.item.gun.HandCannonItem
getKnockbackLevelMethods inherited from class tech.anonymoushacker1279.immersiveweapons.item.gun.AbstractGunItem
defaultPowder, findAmmo, findPowder, getBulletsToFire, getFireVelocity, getHeldPredicate, getMaxBulletsToFire, getUseDuration, handleAmmoStack, handleMuzzleFlash, handlePowderStack, releaseUsing, setupFire, useMethods inherited from class net.minecraft.world.item.Item
appendHoverText, asItem, builtInRegistryHolder, byBlock, byId, canDestroyBlock, canFitInsideContainerItems, components, finishUsingItem, getAttackDamageBonus, getBarColor, getBarWidth, getCraftingRemainder, getDamageSource, getDefaultInstance, getDefaultMaxStackSize, getDescriptionId, getDestroySpeed, getId, getName, getName, getPlayerPOVHitResult, getTooltipImage, getUseAnimation, hurtEnemy, interactLivingEntity, inventoryTick, isBarVisible, isCombineRepairable, isCorrectToolForDrops, isFoil, mineBlock, modifyDefaultComponentsFrom, onCraftedBy, onCraftedPostProcess, onDestroyed, onUseTick, overrideOtherStackedOnMe, overrideStackedOnOther, postHurtEnemy, requiredFeatures, shouldPrintOpWarning, toString, useOn, useOnRelease, verifyComponentsAfterLoadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.neoforged.neoforge.common.extensions.IItemExtension
applyEnchantments, canBeHurtBy, canContinueUsing, canEquip, canFitInsideContainerItems, canGrindstoneRepair, canPerformAction, canWalkOnPowderedSnow, createEntity, damageItem, doesSneakBypassUse, getAllEnchantments, getBurnTime, getCraftingRemainder, getCreatorModId, getDamage, getDefaultAttributeModifiers, getEnchantmentLevel, getEntityLifespan, getEquipmentSlot, getHighlightTip, getMaxDamage, getMaxStackSize, getSweepHitBox, getXpRepairRatio, hasCustomEntity, isDamageable, isDamaged, isGazeDisguise, isNotReplaceableByPickAction, isPiglinCurrency, isPrimaryItemFor, makesPiglinsNeutral, onAnimalArmorTick, onDestroyed, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onStopUsing, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, supportsEnchantment
-
Constructor Details
-
DragonsBreathCannonItem
public DragonsBreathCannonItem(net.minecraft.world.item.Item.Properties properties)
-
-
Method Details
-
defaultAmmo
public net.minecraft.world.item.Item defaultAmmo()Description copied from class:AbstractGunItemGet the default ammunition.- Overrides:
defaultAmmoin classHandCannonItem- Returns:
- Item
-
getInventoryAmmoPredicate
Description copied from class:AbstractGunItemGet the predicate to match ammunition when searching the player's inventory, not their main/offhand- Overrides:
getInventoryAmmoPredicatein classHandCannonItem- Returns:
- Predicate extending ItemStack
-
getFireSound
public net.minecraft.sounds.SoundEvent getFireSound()Description copied from class:AbstractGunItemGet the fire sound.- Overrides:
getFireSoundin classHandCannonItem- Returns:
- SoundEvent
-
getBaseFireVelocity
public float getBaseFireVelocity()- Overrides:
getBaseFireVelocityin classHandCannonItem
-
getInaccuracy
public float getInaccuracy()- Overrides:
getInaccuracyin classHandCannonItem
-
prepareBulletForFire
public void prepareBulletForFire(net.minecraft.world.item.ItemStack gun, BulletEntity bulletEntity, net.minecraft.world.entity.LivingEntity shooter, float powderModifier) - Overrides:
prepareBulletForFirein classHandCannonItem
-
getMaxYRecoil
public float getMaxYRecoil()- Overrides:
getMaxYRecoilin classHandCannonItem
-
getMaxXRecoil
public float getMaxXRecoil()- Overrides:
getMaxXRecoilin classHandCannonItem
-
getCooldown
public int getCooldown()- Overrides:
getCooldownin classHandCannonItem
-