History - net.minecraft.world.item.component.BlocksAttacks

1.21.5

Names

dcl

net.minecraft.world.item.component.BlocksAttacks

net.minecraft.class_10707

net.minecraft.component.type.BlocksAttacksComponent

net.minecraft.world.item.component.BlocksAttacks

Fields

float: c, blockDelaySeconds, comp_3586, blockDelaySeconds

float: d, disableCooldownScale, comp_3587, disableCooldownScale

List<BlocksAttacks$DamageReduction>: e, damageReductions, comp_3588, damageReductions

BlocksAttacks$ItemDamageFunction: f, itemDamage, comp_3589, itemDamage

Optional<TagKey<DamageType>>: g, bypassedBy, comp_3637, bypassedBy

Optional<Holder<SoundEvent>>: h, blockSound, comp_3590, blockSound

Optional<Holder<SoundEvent>>: i, disableSound, comp_3591, disableSound

com.mojang.serialization.Codec<BlocksAttacks>: a, CODEC, field_56301, CODEC

StreamCodec<RegistryFriendlyByteBuf, BlocksAttacks>: b, STREAM_CODEC, field_56302, PACKET_CODEC

Constructors

(float, float, List<BlocksAttacks$DamageReduction>, BlocksAttacks$ItemDamageFunction, Optional<TagKey<DamageType>>, Optional<Holder<SoundEvent>>, Optional<Holder<SoundEvent>>)

Methods

void (ServerLevel, LivingEntity): a, onBlocked, method_67199, playBlockSound

void (ServerLevel, LivingEntity, float, ItemStack): a, disable, method_67200, applyShieldCooldown

void (Level, ItemStack, LivingEntity, InteractionHand, float): a, hurtBlockingItem, method_67204, onShieldHit

int (float): a, disableBlockingForTicks, method_67198, convertCooldownToTicks

int (): a, blockDelayTicks, method_67197, getBlockDelayTicks

float (DamageSource, float, double): a, resolveBlockedDamage, method_67202, getDamageReductionAmount

float (): b, blockDelaySeconds, comp_3586, blockDelaySeconds

float (): c, disableCooldownScale, comp_3587, disableCooldownScale

List<BlocksAttacks$DamageReduction> (): d, damageReductions, comp_3588, damageReductions

BlocksAttacks$ItemDamageFunction (): e, itemDamage, comp_3589, itemDamage

Optional<TagKey<DamageType>> (): f, bypassedBy, comp_3637, bypassedBy

Optional<Holder<SoundEvent>> (): g, blockSound, comp_3590, blockSound

Optional<Holder<SoundEvent>> (): h, disableSound, comp_3591, disableSound