public class ItemGunAmmoStandard extends ItemGunAmmo
| Constructor and Description |
|---|
ItemGunAmmoStandard() |
| 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> infoList,
net.minecraft.client.util.ITooltipFlag extraInfo) |
float |
getAirUsageMultiplier(Minigun minigun,
net.minecraft.item.ItemStack ammoStack)
Get the air usage multiplier.
|
int |
getAmmoColor(net.minecraft.item.ItemStack ammo)
Get the color used to render this ammo, both when rendering the minigun model, and when drawing the bullet
traces.
|
int |
getAmmoCost(net.minecraft.item.ItemStack ammoStack)
Get the cost to fire this ammo, which is the number of rounds used up in one shot.
|
int |
getMaxDamage(net.minecraft.item.ItemStack stack) |
boolean |
isFoil(net.minecraft.item.ItemStack stack) |
int |
onBlockHit(Minigun minigun,
net.minecraft.item.ItemStack ammo,
net.minecraft.util.math.BlockRayTraceResult brtr)
Called when a block is shot by the minigun's wielder.
|
int |
onTargetHit(Minigun minigun,
net.minecraft.item.ItemStack ammo,
net.minecraft.entity.Entity target)
Called when an entity is shot by the minigun's wielder.
|
static void |
setPotion(net.minecraft.item.ItemStack ammo,
net.minecraft.item.ItemStack potion) |
getDamageMultiplier, getDamageSource, getRangeMultiplier, getTintColorallowdedIn, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, fillItemCategory, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDestroySpeed, getDrinkingSound, getEatingSound, getEnchantmentValue, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isEnchantable, isFireResistant, isRepairable, isValidRepairItem, mineBlock, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, use, useOn, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, canHarvestBlock, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, showDurabilityBarpublic int getMaxDamage(net.minecraft.item.ItemStack stack)
getMaxDamage in interface net.minecraftforge.common.extensions.IForgeItemgetMaxDamage in class ItemGunAmmopublic static void setPotion(net.minecraft.item.ItemStack ammo,
net.minecraft.item.ItemStack potion)
public boolean isFoil(net.minecraft.item.ItemStack stack)
isFoil in class net.minecraft.item.Itempublic int getAmmoCost(net.minecraft.item.ItemStack ammoStack)
ItemGunAmmogetAmmoCost in class ItemGunAmmoammoStack - the ammo stackpublic int getAmmoColor(net.minecraft.item.ItemStack ammo)
ItemGunAmmogetAmmoColor in class ItemGunAmmoammo - the ammo cartridgepublic float getAirUsageMultiplier(Minigun minigun, net.minecraft.item.ItemStack ammoStack)
ItemGunAmmogetAirUsageMultiplier in class ItemGunAmmominigun - the minigun being usedammoStack - this ammopublic void appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World world,
java.util.List<net.minecraft.util.text.ITextComponent> infoList,
net.minecraft.client.util.ITooltipFlag extraInfo)
appendHoverText in class ItemGunAmmopublic int onTargetHit(Minigun minigun, net.minecraft.item.ItemStack ammo, net.minecraft.entity.Entity target)
ItemGunAmmoonTargetHit in class ItemGunAmmominigun - the minigun being usedammo - the ammo cartridge stack usedtarget - the targeted entitypublic int onBlockHit(Minigun minigun, net.minecraft.item.ItemStack ammo, net.minecraft.util.math.BlockRayTraceResult brtr)
ItemGunAmmoonBlockHit in class ItemGunAmmominigun - the minigun being usedammo - the ammo cartridge stack usedbrtr - the block raytrace result