Package be.seeseemelk.mockbukkit.damage
Class DamageSourceMock
java.lang.Object
be.seeseemelk.mockbukkit.damage.DamageSourceMock
- All Implemented Interfaces:
DamageSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.damage.DamageSource
DamageSource.Builder -
Constructor Summary
ConstructorsConstructorDescriptionDamageSourceMock(DamageType damageType, Entity causingEntity, Entity directEntity, Location damageLocation) -
Method Summary
-
Constructor Details
-
DamageSourceMock
public DamageSourceMock(DamageType damageType, Entity causingEntity, Entity directEntity, Location damageLocation)
-
-
Method Details
-
getDamageType
- Specified by:
getDamageTypein interfaceDamageSource
-
getCausingEntity
- Specified by:
getCausingEntityin interfaceDamageSource
-
getDirectEntity
- Specified by:
getDirectEntityin interfaceDamageSource
-
getDamageLocation
- Specified by:
getDamageLocationin interfaceDamageSource
-
getSourceLocation
- Specified by:
getSourceLocationin interfaceDamageSource
-
isIndirect
public boolean isIndirect()- Specified by:
isIndirectin interfaceDamageSource
-
getFoodExhaustion
public float getFoodExhaustion()- Specified by:
getFoodExhaustionin interfaceDamageSource
-
scalesWithDifficulty
public boolean scalesWithDifficulty()- Specified by:
scalesWithDifficultyin interfaceDamageSource
-
equals
-
hashCode
public int hashCode()
-