net.minecraft.world.item.component

public record BlocksAttacks

dcb
net.minecraft.world.item.component.BlocksAttacks
net.minecraft.class_10707
net.minecraft.component.type.BlocksAttacksComponent

Field summary

Modifier and TypeField
private final float
c
blockDelaySeconds
comp_3586
blockDelaySeconds
private final float
d
disableCooldownScale
comp_3587
disableCooldownScale
private final List<BlocksAttacks$DamageReduction>
e
damageReductions
comp_3588
damageReductions
private final BlocksAttacks$ItemDamageFunction
f
itemDamage
comp_3589
itemDamage
private final Optional<TagKey<DamageType>>
g
bypassedBy
comp_3637
bypassedBy
private final Optional<Holder<SoundEvent>>
h
blockSound
comp_3590
blockSound
private final Optional<Holder<SoundEvent>>
i
disableSound
comp_3591
disableSound
public static final com.mojang.serialization.Codec<BlocksAttacks>
a
CODEC
field_56301
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, BlocksAttacks>
b
STREAM_CODEC
field_56302
PACKET_CODEC

Constructor summary

ModifierConstructor
public (float arg0, float arg1, List<BlocksAttacks$DamageReduction> arg2, BlocksAttacks$ItemDamageFunction arg3, Optional<TagKey<DamageType>> arg4, Optional<Holder<SoundEvent>> arg5, Optional<Holder<SoundEvent>> arg6)

Method summary

Modifier and TypeMethod
public void
a(aru arg0, bxw arg1)
onBlocked(ServerLevel arg0, LivingEntity arg1)
method_67199(class_3218 arg0, class_1309 arg1)
playBlockSound(ServerWorld world, LivingEntity from)
public void
a(aru arg0, bxw arg1, float arg2, daa arg3)
disable(ServerLevel arg0, LivingEntity arg1, float arg2, ItemStack arg3)
method_67200(class_3218 arg0, class_1309 arg1, float arg2, class_1799 arg3)
applyShieldCooldown(ServerWorld world, LivingEntity affectedEntity, float cooldownSeconds, ItemStack stack)
public void
a(djz arg0, daa arg1, bxw arg2, bus arg3, float arg4)
hurtBlockingItem(Level arg0, ItemStack arg1, LivingEntity arg2, InteractionHand arg3, float arg4)
method_67204(class_1937 arg0, class_1799 arg1, class_1309 arg2, class_1268 arg3, float arg4)
onShieldHit(World world, ItemStack stack, LivingEntity entity, Hand hand, float itemDamage)
private int
a(float arg0)
disableBlockingForTicks(float arg0)
method_67198(float arg0)
convertCooldownToTicks(float cooldownSeconds)
public int
a()
blockDelayTicks()
method_67197()
getBlockDelayTicks()
public float
a(bvk arg0, float arg1, double arg2)
resolveBlockedDamage(DamageSource arg0, float arg1, double arg2)
method_67202(class_1282 arg0, float arg1, double arg2)
getDamageReductionAmount(DamageSource source, float damage, double angle)
public float
b()
blockDelaySeconds()
comp_3586()
blockDelaySeconds()
public float
c()
disableCooldownScale()
comp_3587()
disableCooldownScale()
public List<BlocksAttacks$DamageReduction>
d()
damageReductions()
comp_3588()
damageReductions()
public BlocksAttacks$ItemDamageFunction
e()
itemDamage()
comp_3589()
itemDamage()
public Optional<TagKey<DamageType>>
f()
bypassedBy()
comp_3637()
bypassedBy()
public Optional<Holder<SoundEvent>>
g()
blockSound()
comp_3590()
blockSound()
public Optional<Holder<SoundEvent>>
h()
disableSound()
comp_3591()
disableSound()