Class ItemBlocksAttacks.ItemDamageFunction
java.lang.Object
com.github.retrooper.packetevents.protocol.component.builtin.item.ItemBlocksAttacks.ItemDamageFunction
- Enclosing class:
ItemBlocksAttacks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
float
getBase()
float
float
int
hashCode()
read
(PacketWrapper<?> wrapper) void
setBase
(float base) void
setFactor
(float factor) void
setThreshold
(float threshold) static void
write
(PacketWrapper<?> wrapper, ItemBlocksAttacks.ItemDamageFunction function)
-
Constructor Details
-
ItemDamageFunction
public ItemDamageFunction(float threshold, float base, float factor)
-
-
Method Details
-
read
-
write
-
getThreshold
public float getThreshold() -
setThreshold
public void setThreshold(float threshold) -
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()
-