public abstract class ZapperItem
extends net.minecraft.item.Item
| Constructor and Description |
|---|
ZapperItem(net.minecraft.item.Item.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
activate(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack item,
net.minecraft.block.BlockState stateToUse,
net.minecraft.util.math.BlockRayTraceResult raytrace,
net.minecraft.nbt.CompoundNBT data) |
void |
appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn) |
protected boolean |
canActivateWithoutSelectedBlock(net.minecraft.item.ItemStack stack) |
boolean |
canAttackBlock(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
static void |
configureSettings(net.minecraft.item.ItemStack stack,
PlacementPatterns pattern) |
protected abstract int |
getCooldownDelay(net.minecraft.item.ItemStack item) |
net.minecraft.item.UseAction |
getUseAnimation(net.minecraft.item.ItemStack stack) |
protected abstract int |
getZappingRange(net.minecraft.item.ItemStack stack) |
boolean |
isZapper(net.minecraft.item.ItemStack newStack) |
boolean |
onEntitySwing(net.minecraft.item.ItemStack stack,
net.minecraft.entity.LivingEntity entity) |
protected abstract void |
openHandgunGUI(net.minecraft.item.ItemStack item,
net.minecraft.util.Hand hand) |
static void |
setTileData(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT data,
net.minecraft.entity.player.PlayerEntity player) |
boolean |
shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged) |
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) |
net.minecraft.util.text.ITextComponent |
validateUsage(net.minecraft.item.ItemStack item) |
allowdedIn, asItem, byBlock, byId, 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, 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, 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, getMaxDamage, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getXpRepairRatio, hasContainerItem, hasCustomEntity, initCapabilities, isBookEnchantable, isDamageable, isDamaged, isEnderMask, isPiglinCurrency, isShield, makesPiglinsNeutral, onArmorTick, onBlockStartBreak, onDroppedByPlayer, onEntityItemUpdate, onHorseArmorTick, onItemUseFirst, onLeftClickEntity, onUsingTick, readShareTag, renderHelmetOverlay, setDamage, shouldCauseBlockBreakReset, showDurabilityBarpublic void appendHoverText(net.minecraft.item.ItemStack stack,
net.minecraft.world.World worldIn,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
net.minecraft.client.util.ITooltipFlag flagIn)
appendHoverText in class net.minecraft.item.Itempublic boolean shouldCauseReequipAnimation(net.minecraft.item.ItemStack oldStack,
net.minecraft.item.ItemStack newStack,
boolean slotChanged)
public boolean isZapper(net.minecraft.item.ItemStack newStack)
@Nonnull public net.minecraft.util.ActionResultType useOn(net.minecraft.item.ItemUseContext context)
useOn in class net.minecraft.item.Itempublic 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 net.minecraft.util.text.ITextComponent validateUsage(net.minecraft.item.ItemStack item)
protected abstract boolean activate(net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack item,
net.minecraft.block.BlockState stateToUse,
net.minecraft.util.math.BlockRayTraceResult raytrace,
net.minecraft.nbt.CompoundNBT data)
protected abstract void openHandgunGUI(net.minecraft.item.ItemStack item,
net.minecraft.util.Hand hand)
protected abstract int getCooldownDelay(net.minecraft.item.ItemStack item)
protected abstract int getZappingRange(net.minecraft.item.ItemStack stack)
protected boolean canActivateWithoutSelectedBlock(net.minecraft.item.ItemStack stack)
public boolean onEntitySwing(net.minecraft.item.ItemStack stack,
net.minecraft.entity.LivingEntity entity)
public boolean canAttackBlock(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player)
canAttackBlock in class net.minecraft.item.Itempublic net.minecraft.item.UseAction getUseAnimation(net.minecraft.item.ItemStack stack)
getUseAnimation in class net.minecraft.item.Itempublic static void configureSettings(net.minecraft.item.ItemStack stack,
PlacementPatterns pattern)
public static void setTileData(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState state,
net.minecraft.nbt.CompoundNBT data,
net.minecraft.entity.player.PlayerEntity player)