类 Crossbow
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.RangedWeaponItem
net.minecraft.item.CrossbowItem
pers.saikel0rado1iu.silk.api.item.tool.weapon.ranged.Crossbow
- 所有已实现的接口:
net.fabricmc.fabric.api.item.v1.FabricItem,net.minecraft.item.ItemConvertible,net.minecraft.resource.featuretoggle.ToggleableFeature,HoldingFovZoom,HoldingMovementMultiplier,SilkCrossbowExtend,SilkRangedWeaponExtend
@SilkApi
public abstract class Crossbow
extends net.minecraft.item.CrossbowItem
implements SilkCrossbowExtend
辅助弩的创建的数据直观和清晰
- 从以下版本开始:
- 0.1.0
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.item.Item
net.minecraft.item.Item.Settings -
字段概要
字段修饰符和类型字段说明protected booleanstatic final floatstatic final floatprotected booleanstatic final net.minecraft.util.Identifierstatic final net.minecraft.util.Identifierstatic final net.minecraft.util.Identifierstatic final net.minecraft.util.Identifier从类继承的字段 net.minecraft.item.CrossbowItem
RANGE从类继承的字段 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.item.tool.weapon.ranged.SilkCrossbowExtend
CHARGED_KEY, CHARGED_PROJECTILES_KEY, CROSSBOW_MAX_PROJECTILE_SPEED, CROSSBOW_MAX_USE_TICKS从接口继承的字段 pers.saikel0rado1iu.silk.api.item.tool.weapon.ranged.SilkRangedWeaponExtend
DEFAULT_FIRING_ERROR, PROJECTILE_ID_KEY, PULL_KEY, PULLING_KEY从接口继承的字段 net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleancanChangeFov(net.minecraft.item.ItemStack stack) booleancanChangeMovement(net.minecraft.item.ItemStack stack) protected voidclearAllProjectile(net.minecraft.item.ItemStack crossbow) 重实现CrossbowItem.clearProjectiles(ItemStack)protected net.minecraft.entity.projectile.PersistentProjectileEntitycreateArrow(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack arrow) 重实现CrossbowItem.createArrow(World, LivingEntity, ItemStack, ItemStack)protected List<net.minecraft.item.ItemStack>getAllProjectile(net.minecraft.item.ItemStack crossbow) 重实现CrossbowItem.getProjectiles(ItemStack)intprotected net.minecraft.sound.SoundEvent获取装填结束音效protected net.minecraft.sound.SoundEvent获取装填中音效intgetMaxUseTime(net.minecraft.item.ItemStack stack) 获取最大使用时间protected net.minecraft.sound.SoundEventgetQuickChargeSound(int stage) 因私有字段问题protected net.minecraft.sound.SoundEvent获取弩发射音效protected floatgetSoundPitch(boolean flag, net.minecraft.util.math.random.Random random) 重实现CrossbowItem.getSoundPitch(boolean, Random)protected float[]getSoundPitches(net.minecraft.util.math.random.Random random) 重实现CrossbowItem.getSoundPitches(Random)booleanprotected booleanloadAllProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow) 重实现CrossbowItem.loadProjectiles(LivingEntity, ItemStack)protected booleanloadProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, boolean simulated, boolean creative) 重实现CrossbowItem.loadProjectile(LivingEntity, ItemStack, ItemStack, boolean, boolean)voidonStoppedUsing(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, int remainingUseTicks) 重实现CrossbowItem.onStoppedUsing(ItemStack, World, LivingEntity, int)protected voidpostShootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack) 重实现CrossbowItem.postShoot(World, LivingEntity, ItemStack)protected voidputProjectile(net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile) 重实现CrossbowItem.putProjectile(ItemStack, ItemStack)voidshootAllProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack stack, float speed, float divergence) 重实现CrossbowItem.shootAll(World, LivingEntity, Hand, ItemStack, float, float)protected voidshootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated) 设置自定义伤害voidusageTick(net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, net.minecraft.item.ItemStack stack, int remainingUseTicks) 因私有字段问题net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack>use(net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity user, net.minecraft.util.Hand hand) 设置自定义的弹药速度与射击误差从类继承的方法 net.minecraft.item.CrossbowItem
appendTooltip, getHeldProjectiles, getProjectiles, getPullTime, getRange, getUseAction, hasProjectile, isCharged, isUsedOnRelease, setCharged, shootAll从类继承的方法 net.minecraft.item.RangedWeaponItem
getHeldProjectile从类继承的方法 net.minecraft.item.Item
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, onClicked, onCraft, onCraftByPlayer, onItemEntityDestroyed, onStackClicked, postHit, postMine, postProcessNbt, raycast, toString, useOnBlock, useOnEntity从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 net.fabricmc.fabric.api.item.v1.FabricItem
allowContinuingBlockBreaking, allowNbtUpdateAnimation, getAttributeModifiers, getFoodComponent, getRecipeRemainder, isSuitableFor从接口继承的方法 pers.saikel0rado1iu.silk.api.item.tool.HoldingFovZoom
getHoldingFovMultiple从接口继承的方法 pers.saikel0rado1iu.silk.api.item.tool.weapon.ranged.SilkCrossbowExtend
getDamageMultiple, getFiringError, getHoldingFovZoom, getHoldingMovementMultiple, getHubOverlay, getMaxDamageMultiple, getMaxProjectileSpeed, getMaxProjectileSpeed, getMaxPullTicks, getMaxUseTicks, getUsingProgress, isConflictItems, onlyFirstPerson从接口继承的方法 pers.saikel0rado1iu.silk.api.item.tool.weapon.ranged.SilkRangedWeaponExtend
getAllProjectile, getProjectileId, setProjectileId从接口继承的方法 net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
字段详细资料
-
构造器详细资料
-
Crossbow
public Crossbow(net.minecraft.item.Item.Settings settings)
-
-
方法详细资料
-
createArrow
protected net.minecraft.entity.projectile.PersistentProjectileEntity createArrow(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack arrow) 重实现CrossbowItem.createArrow(World, LivingEntity, ItemStack, ItemStack) -
getSoundPitches
protected float[] getSoundPitches(net.minecraft.util.math.random.Random random) 重实现CrossbowItem.getSoundPitches(Random) -
getSoundPitch
protected float getSoundPitch(boolean flag, net.minecraft.util.math.random.Random random) 重实现CrossbowItem.getSoundPitch(boolean, Random) -
postShootProjectile
protected void postShootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.item.ItemStack stack) 重实现CrossbowItem.postShoot(World, LivingEntity, ItemStack) -
loadAllProjectile
protected boolean loadAllProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow) 重实现CrossbowItem.loadProjectiles(LivingEntity, ItemStack) -
loadProjectile
protected boolean loadProjectile(net.minecraft.entity.LivingEntity shooter, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, boolean simulated, boolean creative) 重实现CrossbowItem.loadProjectile(LivingEntity, ItemStack, ItemStack, boolean, boolean) -
putProjectile
protected void putProjectile(net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile) 重实现CrossbowItem.putProjectile(ItemStack, ItemStack) -
getAllProjectile
protected List<net.minecraft.item.ItemStack> getAllProjectile(net.minecraft.item.ItemStack crossbow) 重实现CrossbowItem.getProjectiles(ItemStack) -
clearAllProjectile
protected void clearAllProjectile(net.minecraft.item.ItemStack crossbow) 重实现CrossbowItem.clearProjectiles(ItemStack) -
isHubStretch
public boolean isHubStretch() -
canChangeFov
public boolean canChangeFov(net.minecraft.item.ItemStack stack) - 指定者:
canChangeFov在接口中HoldingFovZoom
-
canChangeMovement
public boolean canChangeMovement(net.minecraft.item.ItemStack stack) - 指定者:
canChangeMovement在接口中HoldingMovementMultiplier
-
getEnchantability
public int getEnchantability()- 覆盖:
getEnchantability在类中net.minecraft.item.RangedWeaponItem
-
shootProjectile
protected void shootProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity shooter, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack crossbow, net.minecraft.item.ItemStack projectile, float soundPitch, boolean creative, float speed, float divergence, float simulated) 设置自定义伤害
重实现CrossbowItem.shoot(World, LivingEntity, Hand, ItemStack, ItemStack, float, boolean, float, float, float) -
shootAllProjectile
public void shootAllProjectile(net.minecraft.world.World world, net.minecraft.entity.LivingEntity entity, net.minecraft.util.Hand hand, net.minecraft.item.ItemStack stack, float speed, float divergence) 重实现CrossbowItem.shootAll(World, LivingEntity, Hand, ItemStack, float, float) -
onStoppedUsing
public void onStoppedUsing(net.minecraft.item.ItemStack stack, net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, int remainingUseTicks) 重实现CrossbowItem.onStoppedUsing(ItemStack, World, LivingEntity, int)- 覆盖:
onStoppedUsing在类中net.minecraft.item.CrossbowItem
-
use
public net.minecraft.util.TypedActionResult<net.minecraft.item.ItemStack> use(net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity user, net.minecraft.util.Hand hand) 设置自定义的弹药速度与射击误差
重实现CrossbowItem.use(World, PlayerEntity, Hand)- 覆盖:
use在类中net.minecraft.item.CrossbowItem
-
usageTick
public void usageTick(net.minecraft.world.World world, net.minecraft.entity.LivingEntity user, net.minecraft.item.ItemStack stack, int remainingUseTicks) 因私有字段问题
重实现CrossbowItem.usageTick(World, LivingEntity, ItemStack, int)- 覆盖:
usageTick在类中net.minecraft.item.CrossbowItem
-
getQuickChargeSound
protected net.minecraft.sound.SoundEvent getQuickChargeSound(int stage) 因私有字段问题
重实现CrossbowItem.getQuickChargeSound(int) -
getLoadingSound
protected net.minecraft.sound.SoundEvent getLoadingSound()获取装填中音效 -
getLoadingEndSound
protected net.minecraft.sound.SoundEvent getLoadingEndSound()获取装填结束音效 -
getShootSound
protected net.minecraft.sound.SoundEvent getShootSound()获取弩发射音效 -
getMaxUseTime
public int getMaxUseTime(net.minecraft.item.ItemStack stack) 获取最大使用时间- 覆盖:
getMaxUseTime在类中net.minecraft.item.CrossbowItem
-