net.minecraft.world.item.component

public record BlocksAttacks

dat
net.minecraft.world.item.component.BlocksAttacks
net.minecraft.class_10707
net.minecraft.class_10707

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<Holder<SoundEvent>>
g
blockSound
comp_3590
blockSound
private final Optional<Holder<SoundEvent>>
h
disableSound
comp_3591
disableSound
public static final com.mojang.serialization.Codec<BlocksAttacks>
a
CODEC
field_56301
field_56301
public static final StreamCodec<RegistryFriendlyByteBuf, BlocksAttacks>
b
STREAM_CODEC
field_56302
field_56302

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
a(aro arg0, bwz arg1)
onBlocked(ServerLevel arg0, LivingEntity arg1)
method_67199(class_3218 arg0, class_1309 arg1)
method_67199(ServerWorld arg0, LivingEntity arg1)
public void
a(aro arg0, bwz arg1, float arg2, cys arg3)
disable(ServerLevel arg0, LivingEntity arg1, float arg2, ItemStack arg3)
method_67200(class_3218 arg0, class_1309 arg1, float arg2, class_1799 arg3)
method_67200(ServerWorld arg0, LivingEntity arg1, float arg2, ItemStack arg3)
public void
a(dip arg0, cys arg1, bwz arg2, btx 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)
method_67204(World arg0, ItemStack arg1, LivingEntity arg2, Hand arg3, float arg4)
private int
a(float arg0)
disableBlockingForTicks(float arg0)
method_67198(float arg0)
method_67198(float arg0)
public int
a()
blockDelayTicks()
method_67197()
method_67197()
public float
a(bup arg0, float arg1)
resolveBlockedDamage(DamageSource arg0, float arg1)
method_67202(class_1282 arg0, float arg1)
method_67202(DamageSource arg0, float arg1)
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<Holder<SoundEvent>>
f()
blockSound()
comp_3590()
blockSound()
public Optional<Holder<SoundEvent>>
g()
disableSound()
comp_3591()
disableSound()