类 SlingshotItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
net.minecraft.item.BowItem
pers.saikel0rado1iu.silk.api.ropestick.ranged.Bow
pers.saikel0rado1iu.spontaneousreplace.item.SlingshotItem
- 所有已实现的接口:
net.fabricmc.fabric.api.item.v1.FabricItem,net.minecraft.item.ItemConvertible,net.minecraft.item.Vanishable,net.minecraft.resource.featuretoggle.ToggleableFeature,pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperties,pers.saikel0rado1iu.silk.api.ropestick.ranged.BowExpansion,pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion,pers.saikel0rado1iu.silk.api.ropestick.tool.AdjustFovWhileUse,pers.saikel0rado1iu.silk.api.ropestick.tool.ModifyMoveWhileUse
public class SlingshotItem
extends pers.saikel0rado1iu.silk.api.ropestick.ranged.Bow
implements pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperties
丫弹弓物品
添加一种娱乐性质的远程武器- 从以下版本开始:
- 1.0.0
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.item.Item
net.minecraft.item.Item.Settings -
字段概要
字段修饰符和类型字段说明static final floatstatic final floatstatic final net.minecraft.util.Identifierstatic final net.minecraft.util.Identifierstatic final net.minecraft.util.Identifierstatic final net.minecraft.util.Identifier从类继承的字段 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, DEFAULT_MAX_USE_TIME, ITEM_BAR_STEPS从接口继承的字段 pers.saikel0rado1iu.silk.api.ropestick.ranged.BowExpansion
BOW_FOV_SCALING, BOW_MAX_DAMAGE, BOW_MAX_PROJECTILE_SPEED, BOW_MAX_PULL_TICKS, BOW_MAX_USE_TICKS从接口继承的字段 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
DEFAULT_FIRING_ERROR, PROJECTILE_INDEX_KEY, PULL_KEY, PULLING_KEY从接口继承的字段 net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明net.minecraft.item.Item默认的发射物default floatfloatgetProjectileIndex(net.minecraft.item.Item projectile) 获取发射物索引以供 JSON 渲染使用floatgetProjectileIndex(net.minecraft.item.ItemStack stack) 获取发射物索引以供 JSON 渲染使用Set<net.minecraft.item.Item>获取远程武器能发射的所有的发射物floatintfloatvoidonStoppedUsing(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, int remainingUseTicks) Set<pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperty>属性方法voidsetProjectileIndex(net.minecraft.item.ItemStack stack, net.minecraft.item.ItemStack useProjectile) 设置发射物索引以供 JSON 渲染使用voidtriggerCriteria(net.minecraft.server.network.ServerPlayerEntity serverPlayer, net.minecraft.item.ItemStack ranged, net.minecraft.entity.projectile.ProjectileEntity projectile) 触发进度条件从类继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.Bow
canStretchHud, getMaxUseTime, getProjectiles, use从类继承的方法 net.minecraft.item.BowItem
getPullProgress, getRange, getUseAction从类继承的方法 net.minecraft.item.RangedWeaponItem
getEnchantability, getHeldProjectile, getHeldProjectiles从类继承的方法 net.minecraft.item.Item
appendTooltip, asItem, byRawId, canBeNested, canMine, canRepair, damage, finishUsing, fromBlock, getAttributeModifiers, getDefaultStack, getDrinkSound, getEatSound, getFoodComponent, getItemBarColor, getItemBarStep, getMaxCount, getMaxDamage, getMiningSpeedMultiplier, getName, getName, getOrCreateTranslationKey, getRarity, getRawId, getRecipeRemainder, getRegistryEntry, getRequiredFeatures, getTooltipData, getTranslationKey, getTranslationKey, hasGlint, hasRecipeRemainder, inventoryTick, isDamageable, isEnchantable, isFireproof, isFood, isItemBarVisible, isNbtSynced, isNetworkSynced, isSuitableFor, isUsedOnRelease, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, postHit, postMine, postProcessNbt, raycast, toString, usageTick, useOnBlock, useOnEntity从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.BowExpansion
adjustedProjectileDamage, firingError, fovScaling, getUsingProgress, hudOverlay, maxDamage, maxUseTicks, onlyFirstPerson从接口继承的方法 net.fabricmc.fabric.api.item.v1.FabricItem
allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getRecipeRemainder, isSuitableFor从接口继承的方法 pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
getProjectileType从接口继承的方法 net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
字段详细资料
-
DEFAULT_SPEED_MULTIPLE
static final float DEFAULT_SPEED_MULTIPLE- 另请参阅:
-
DEFAULT_FOV_SCALING
static final float DEFAULT_FOV_SCALING- 另请参阅:
-
VIGNETTE_TEXTURE
static final net.minecraft.util.Identifier VIGNETTE_TEXTURE -
PUMPKIN_BLUR
static final net.minecraft.util.Identifier PUMPKIN_BLUR -
SPYGLASS_SCOPE
static final net.minecraft.util.Identifier SPYGLASS_SCOPE -
POWDER_SNOW_OUTLINE
static final net.minecraft.util.Identifier POWDER_SNOW_OUTLINE
-
-
构造器详细资料
-
SlingshotItem
public SlingshotItem(net.minecraft.item.Item.Settings settings) - 参数:
settings- 物品设置
-
-
方法详细资料
-
onStoppedUsing
public void onStoppedUsing(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, int remainingUseTicks) - 覆盖:
onStoppedUsing在类中pers.saikel0rado1iu.silk.api.ropestick.ranged.Bow
-
properties
属性方法- 指定者:
properties在接口中pers.saikel0rado1iu.silk.api.ropestick.property.ItemProperties- 返回:
- 物品属性集合
-
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.RangedExpansion- 参数:
serverPlayer- 服务端玩家ranged- 远程武器物品堆栈projectile- 发射物
-
setProjectileIndex
public void setProjectileIndex(net.minecraft.item.ItemStack stack, net.minecraft.item.ItemStack useProjectile) 设置发射物索引以供 JSON 渲染使用- 指定者:
setProjectileIndex在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion- 参数:
stack- 物品堆栈useProjectile- 使用的发射物
-
getProjectileIndex
public float getProjectileIndex(net.minecraft.item.ItemStack stack) 获取发射物索引以供 JSON 渲染使用- 指定者:
getProjectileIndex在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion- 参数:
stack- 物品堆栈- 返回:
- 索引
-
getProjectileIndex
public float getProjectileIndex(net.minecraft.item.Item projectile) 获取发射物索引以供 JSON 渲染使用- 指定者:
getProjectileIndex在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion- 参数:
projectile- 发射物- 返回:
- 索引
-
defaultProjectile
public net.minecraft.item.Item defaultProjectile()默认的发射物- 指定者:
defaultProjectile在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion- 返回:
- 发射物物品堆栈
-
launchableProjectiles
获取远程武器能发射的所有的发射物- 指定者:
launchableProjectiles在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion- 返回:
- 发射物集合
-
maxPullTicks
public int maxPullTicks()- 指定者:
maxPullTicks在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.BowExpansion
-
maxProjectileSpeed
public float maxProjectileSpeed()- 指定者:
maxProjectileSpeed在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.BowExpansion- 指定者:
maxProjectileSpeed在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.RangedExpansion
-
moveSpeedMultiple
public float moveSpeedMultiple()- 指定者:
moveSpeedMultiple在接口中pers.saikel0rado1iu.silk.api.ropestick.ranged.BowExpansion
-
fovScalingMultiple
default float fovScalingMultiple()
-