Package net.minecraft.item
Class OnAStickItem<T extends Entity & ItemSteerable>
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.OnAStickItem<T>
- All Implemented Interfaces:
ItemConvertible
public class OnAStickItem<T extends Entity & ItemSteerable> extends Item
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description private intdamagePerUseprivate EntityType<T>targetFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, group, RANDOM -
Constructor Summary
Constructors Constructor Description OnAStickItem(Item.Settings settings, EntityType<T> target, int damagePerUse) -
Method Summary
Modifier and Type Method Description TypedActionResult<ItemStack>use(World world, PlayerEntity user, Hand hand)Methods inherited from class net.minecraft.item.Item
appendStacks, appendTooltip, asItem, byRawId, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDrinkSound, getEatSound, getEnchantability, getFoodComponent, getGroup, getMaxCount, getMaxDamage, getMaxUseTime, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getStackForRender, getTranslationKey, getTranslationKey, getUseAction, hasEnchantmentGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFireproof, isFood, isIn, isIn, isNetworkSynced, isUsedOnRelease, onCraft, onStoppedUsing, postHit, postMine, postProcessTag, rayTrace, shouldSyncTagToClient, toString, usageTick, useOnBlock, useOnEntity
-
Field Details
-
target
-
damagePerUse
private final int damagePerUse
-
-
Constructor Details
-
Method Details