类 SlingshotItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
net.minecraft.item.BowItem
pers.saikel0rado1iu.silk.api.ropestick.ranged.BowLikeItem
pers.saikel0rado1iu.spontaneousreplace.item.SlingshotItem
- 所有已实现的接口:
net.fabricmc.fabric.api.item.v1.FabricItem,net.minecraft.item.ItemConvertible,net.minecraft.resource.featuretoggle.ToggleableFeature,pers.saikel0rado1iu.silk.api.ropestick.component.DynamicComponent
public class SlingshotItem
extends pers.saikel0rado1iu.silk.api.ropestick.ranged.BowLikeItem
丫弹弓物品
添加一种娱乐性质的远程武器- 从以下版本开始:
- 1.0.0
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.item.Item
net.minecraft.item.Item.Settings, net.minecraft.item.Item.TooltipContext -
字段概要
字段从类继承的字段 pers.saikel0rado1iu.silk.api.ropestick.ranged.BowLikeItem
tempStack从类继承的字段 net.minecraft.item.BowItem
RANGE, TICKS_PER_SECOND从类继承的字段 net.minecraft.item.RangedWeaponItem
BOW_PROJECTILES, CROSSBOW_HELD_PROJECTILES从类继承的字段 net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_ID, ATTACK_SPEED_MODIFIER_ID, BLOCK_ITEMS, DEFAULT_MAX_COUNT, ITEM_BAR_STEPS, MAX_MAX_COUNT从接口继承的字段 net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明pers.saikel0rado1iu.silk.api.ropestick.component.type.RangedWeaponComponentrangedWeapon(Optional<net.minecraft.item.ItemStack> stack) protected voidshootAll(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack stack, List<net.minecraft.item.ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable net.minecraft.entity.LivingEntity target) voidtriggerCriteria(net.minecraft.server.network.ServerPlayerEntity serverPlayer, net.minecraft.item.ItemStack ranged, net.minecraft.entity.projectile.ProjectileEntity projectile) 触发进度条件从类继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.BowLikeItem
dynamicComponents, getMaxUseTime, getProjectiles, getUsingProgress, onStoppedUsing, shoot从类继承的方法 net.minecraft.item.BowItem
getPullProgress, getRange, getUseAction, use从类继承的方法 net.minecraft.item.RangedWeaponItem
createArrowEntity, getEnchantability, getHeldProjectile, getHeldProjectiles, getProjectile, getWeaponStackDamage, isInfinity, load从类继承的方法 net.minecraft.item.Item
appendTooltip, asItem, byRawId, canBeNested, canMine, canRepair, finishUsing, fromBlock, getAttributeModifiers, getBonusAttackDamage, getBreakSound, getComponents, getDefaultStack, getDrinkSound, getEatSound, getItemBarColor, getItemBarStep, getMaxCount, getMiningSpeed, getName, getName, getOrCreateTranslationKey, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, hasGlint, hasRecipeRemainder, inventoryTick, isCorrectForDrops, isEnchantable, isItemBarVisible, isNetworkSynced, isUsedOnRelease, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, postHit, postMine, postProcessComponents, raycast, toString, usageTick, useOnBlock, useOnEntity从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 net.fabricmc.fabric.api.item.v1.FabricItem
allowComponentsUpdateAnimation, allowContinuingBlockBreaking, canBeEnchantedWith, getAttributeModifiers, getRecipeRemainder从接口继承的方法 net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
字段详细资料
-
MAX_DAMAGE
public static final int MAX_DAMAGE
-
-
构造器详细资料
-
SlingshotItem
public SlingshotItem(net.minecraft.item.Item.Settings settings) - 参数:
settings- 物品设置
-
-
方法详细资料
-
shootAll
protected void shootAll(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack stack, List<net.minecraft.item.ItemStack> projectiles, float speed, float divergence, boolean critical, @Nullable @Nullable net.minecraft.entity.LivingEntity target) - 覆盖:
shootAll在类中pers.saikel0rado1iu.silk.api.ropestick.ranged.BowLikeItem
-
rangedWeapon
public pers.saikel0rado1iu.silk.api.ropestick.component.type.RangedWeaponComponent rangedWeapon(Optional<net.minecraft.item.ItemStack> stack) - 指定者:
rangedWeapon在类中pers.saikel0rado1iu.silk.api.ropestick.ranged.BowLikeItem
-
triggerCriteria
public void triggerCriteria(net.minecraft.server.network.ServerPlayerEntity serverPlayer, net.minecraft.item.ItemStack ranged, net.minecraft.entity.projectile.ProjectileEntity projectile) 触发进度条件- 指定者:
triggerCriteria在类中pers.saikel0rado1iu.silk.api.ropestick.ranged.BowLikeItem- 参数:
serverPlayer- 服务端玩家ranged- 远程武器物品堆栈projectile- 发射物
-