Class ItemBlocksAttacks
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemBlocksAttacks
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
ConstructorsConstructorDescriptionItemBlocksAttacks
(float blockDelaySeconds, float disableCooldownScale, List<ItemBlocksAttacks.DamageReduction> damageReductions, ItemBlocksAttacks.ItemDamageFunction itemDamage, @Nullable ResourceLocation bypassedBy, @Nullable Sound blockSound, @Nullable Sound disableSound) -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
@Nullable Sound
@Nullable ResourceLocation
float
@Nullable Sound
int
hashCode()
static ItemBlocksAttacks
read
(PacketWrapper<?> wrapper) void
setBlockDelaySeconds
(float blockDelaySeconds) void
setBlockSound
(@Nullable Sound blockSound) void
setBypassedBy
(@Nullable ResourceLocation bypassedBy) void
setDamageReductions
(List<ItemBlocksAttacks.DamageReduction> damageReductions) void
setDisableCooldownScale
(float disableCooldownScale) void
setDisableSound
(@Nullable Sound disableSound) void
setItemDamage
(ItemBlocksAttacks.ItemDamageFunction itemDamage) static void
write
(PacketWrapper<?> wrapper, ItemBlocksAttacks attack)
-
Constructor Details
-
ItemBlocksAttacks
public ItemBlocksAttacks(float blockDelaySeconds, float disableCooldownScale, List<ItemBlocksAttacks.DamageReduction> damageReductions, ItemBlocksAttacks.ItemDamageFunction itemDamage, @Nullable @Nullable ResourceLocation bypassedBy, @Nullable @Nullable Sound blockSound, @Nullable @Nullable Sound disableSound)
-
-
Method Details
-
read
-
write
-
getBlockDelaySeconds
public float getBlockDelaySeconds() -
setBlockDelaySeconds
public void setBlockDelaySeconds(float blockDelaySeconds) -
getDisableCooldownScale
public float getDisableCooldownScale() -
setDisableCooldownScale
public void setDisableCooldownScale(float disableCooldownScale) -
getDamageReductions
-
setDamageReductions
-
getItemDamage
-
setItemDamage
-
getBypassedBy
-
setBypassedBy
-
getBlockSound
-
setBlockSound
-
getDisableSound
-
setDisableSound
-
equals
-
hashCode
public int hashCode()
-