public class ItemJackHammer extends ItemPressurizable implements IChargeableContainerProvider, IUpgradeAcceptor, ColorHandlers.ITintableItem, IShiftScrollable
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemJackHammer.DigMode |
static class |
ItemJackHammer.DrillBitHandler |
static class |
ItemJackHammer.EnchantmentHandler |
static class |
ItemJackHammer.Listener |
net.minecraft.item.Item.Propertiesnet.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>IChargeableContainerProvider.Provider| Constructor and Description |
|---|
ItemJackHammer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHarvestBlock(net.minecraft.item.ItemStack stack,
net.minecraft.block.BlockState blockIn) |
static ItemJackHammer.DigMode |
cycleDigMode(net.minecraft.item.ItemStack stack,
boolean forward) |
java.util.Map<EnumUpgrade,java.lang.Integer> |
getApplicableUpgrades()
This method is called as soon as an instance of this interface is registered, be aware.
|
static java.util.Set<net.minecraft.util.math.BlockPos> |
getBreakPositions(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction dir,
net.minecraft.util.Direction playerHoriz,
ItemJackHammer.DigMode digMode) |
net.minecraft.inventory.container.INamedContainerProvider |
getContainerProvider(TileEntityChargingStation te)
Get a container provider for this item
|
float |
getDestroySpeed(net.minecraft.item.ItemStack stack,
net.minecraft.block.BlockState state) |
static ItemJackHammer.DigMode |
getDigMode(net.minecraft.item.ItemStack stack) |
ItemDrillBit.DrillBitType |
getDrillBit(net.minecraft.item.ItemStack stack) |
static ItemJackHammer.DrillBitHandler |
getDrillBitHandler(net.minecraft.item.ItemStack stack) |
static ItemJackHammer.EnchantmentHandler |
getEnchantmentHandler(net.minecraft.item.ItemStack stack) |
static long |
getLastModeSwitchTime() |
int |
getTintColor(net.minecraft.item.ItemStack stack,
int tintIndex) |
java.lang.String |
getUpgradeAcceptorTranslationKey()
Get a translation key for this upgrade acceptor.
|
boolean |
mineBlock(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.LivingEntity entityLiving) |
boolean |
onBlockStartBreak(net.minecraft.item.ItemStack itemstack,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
boolean |
onEntitySwing(net.minecraft.item.ItemStack stack,
net.minecraft.entity.LivingEntity entity) |
void |
onShiftScrolled(net.minecraft.entity.player.PlayerEntity player,
boolean forward,
net.minecraft.util.Hand hand)
Called both client- and server-side when a player shift-scrolls the mouse wheel, while holding an item
(in main hand) which implements this interface.
|
static void |
setDigMode(net.minecraft.item.ItemStack stack,
ItemJackHammer.DigMode mode) |
net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> |
use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand handIn) |
fillItemCategory, getAir, getBaseVolume, getDurabilityForDisplay, getEnchantmentValue, getRGBDurabilityForDisplay, getShareTag, getVolumeUpgrades, initCapabilities, isEnchantable, roundedPressure, shouldCauseReequipAnimation, showDurabilityBarallowdedIn, appendHoverText, asItem, byBlock, byId, canAttackBlock, canBeDepleted, canBeHurtBy, finishUsingItem, getCraftingRemainingItem, getDefaultAttributeModifiers, getDefaultInstance, getDescription, getDescriptionId, getDescriptionId, getDrinkingSound, getEatingSound, getFoodProperties, getHarvestLevel, getId, getItemCategory, getItemStackTileEntityRenderer, getMaxDamage, getMaxStackSize, getName, getOrCreateDescriptionId, getPlayerPOVHitResult, getRarity, getTags, getToolTypes, getUseAnimation, getUseDuration, hasCraftingRemainingItem, hurtEnemy, interactLivingEntity, inventoryTick, is, isComplex, isCorrectToolForDrops, isEdible, isFireResistant, isFoil, isRepairable, isValidRepairItem, onCraftedBy, onUseTick, releaseUsing, shouldOverrideMultiplayerNbt, toString, useOn, useOnRelease, verifyTagAfterLoadgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEffectiveVolume, getPressurecanApplyAtEnchantingTable, canContinueUsing, canDisableShield, canElytraFly, canEquip, createEntity, damageItem, doesSneakBypassUse, elytraFlightTick, getArmorModel, getArmorTexture, getAttributeModifiers, getBurnTime, getBurnTime, getContainerItem, getCreativeTabs, getCreatorModId, getDamage, getEntityLifespan, getEquipmentSlot, getFontRenderer, getHighlightTip, getItem, getItemEnchantability, getItemStackLimit, getMaxDamage, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onDroppedByPlayer, onEntityItemUpdate, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakResetpublic static long getLastModeSwitchTime()
public static ItemJackHammer.DrillBitHandler getDrillBitHandler(net.minecraft.item.ItemStack stack)
public static ItemJackHammer.EnchantmentHandler getEnchantmentHandler(net.minecraft.item.ItemStack stack)
public ItemDrillBit.DrillBitType getDrillBit(net.minecraft.item.ItemStack stack)
public boolean canHarvestBlock(net.minecraft.item.ItemStack stack,
net.minecraft.block.BlockState blockIn)
canHarvestBlock in interface net.minecraftforge.common.extensions.IForgeItempublic float getDestroySpeed(net.minecraft.item.ItemStack stack,
net.minecraft.block.BlockState state)
getDestroySpeed in class net.minecraft.item.Itempublic net.minecraft.util.ActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World worldIn,
net.minecraft.entity.player.PlayerEntity playerIn,
net.minecraft.util.Hand handIn)
use in class net.minecraft.item.Itempublic boolean mineBlock(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
net.minecraft.block.BlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.LivingEntity entityLiving)
mineBlock in class net.minecraft.item.Itempublic boolean onEntitySwing(net.minecraft.item.ItemStack stack,
net.minecraft.entity.LivingEntity entity)
onEntitySwing in interface net.minecraftforge.common.extensions.IForgeItempublic boolean onBlockStartBreak(net.minecraft.item.ItemStack itemstack,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player)
onBlockStartBreak in interface net.minecraftforge.common.extensions.IForgeItempublic static java.util.Set<net.minecraft.util.math.BlockPos> getBreakPositions(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction dir,
net.minecraft.util.Direction playerHoriz,
ItemJackHammer.DigMode digMode)
public java.util.Map<EnumUpgrade,java.lang.Integer> getApplicableUpgrades()
IUpgradeAcceptorgetApplicableUpgrades in interface IUpgradeAcceptorpublic java.lang.String getUpgradeAcceptorTranslationKey()
IUpgradeAcceptorgetUpgradeAcceptorTranslationKey in interface IUpgradeAcceptorpublic net.minecraft.inventory.container.INamedContainerProvider getContainerProvider(TileEntityChargingStation te)
IChargeableContainerProvidergetContainerProvider in interface IChargeableContainerProviderte - the charging station that the item is inpublic int getTintColor(net.minecraft.item.ItemStack stack,
int tintIndex)
getTintColor in interface ColorHandlers.ITintableItempublic static ItemJackHammer.DigMode getDigMode(net.minecraft.item.ItemStack stack)
public static void setDigMode(net.minecraft.item.ItemStack stack,
ItemJackHammer.DigMode mode)
public static ItemJackHammer.DigMode cycleDigMode(net.minecraft.item.ItemStack stack, boolean forward)
public void onShiftScrolled(net.minecraft.entity.player.PlayerEntity player,
boolean forward,
net.minecraft.util.Hand hand)
IShiftScrollableonShiftScrolled in interface IShiftScrollableplayer - player doing the shift-scrollingforward - true if the mouse wheel was rotated up, false if rotated down