Class ItemBlocksAttacks.DamageReduction
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemBlocksAttacks.DamageReduction
- Enclosing class:
ItemBlocksAttacks
-
Constructor Summary
ConstructorsConstructorDescriptionDamageReduction
(float horizontalBlockingAngle, @Nullable MappedEntitySet<DamageType> type, float base, float factor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
getBase()
float
float
@Nullable MappedEntitySet
<DamageType> getType()
int
hashCode()
read
(PacketWrapper<?> wrapper) void
setBase
(float base) void
setFactor
(float factor) void
setHorizontalBlockingAngle
(float horizontalBlockingAngle) void
setType
(@Nullable MappedEntitySet<DamageType> type) static void
write
(PacketWrapper<?> wrapper, ItemBlocksAttacks.DamageReduction reduction)
-
Constructor Details
-
DamageReduction
public DamageReduction(float horizontalBlockingAngle, @Nullable @Nullable MappedEntitySet<DamageType> type, float base, float factor)
-
-
Method Details
-
read
-
write
-
getHorizontalBlockingAngle
public float getHorizontalBlockingAngle() -
setHorizontalBlockingAngle
public void setHorizontalBlockingAngle(float horizontalBlockingAngle) -
getType
-
setType
-
getBase
public float getBase() -
setBase
public void setBase(float base) -
getFactor
public float getFactor() -
setFactor
public void setFactor(float factor) -
equals
-
hashCode
public int hashCode()
-