Class AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T extends EntityDamageSource,B extends EntityDamageSource.EntityDamageSourceBuilder<T,B>>
java.lang.Object
org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder<T,B>
org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T,B>
- All Implemented Interfaces:
AbstractBuilder<T>
,DamageSource.DamageSourceBuilder<T,
,B> EntityDamageSource.EntityDamageSourceBuilder<T,
,B> Builder<T,
,B> CopyableBuilder<T,
,B> ResettableBuilder<T,
B>
- Direct Known Subclasses:
AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder
- Enclosing class:
- AbstractEntityDamageSource
public abstract static class AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T extends EntityDamageSource,B extends EntityDamageSource.EntityDamageSourceBuilder<T,B>>
extends AbstractDamageSourceBuilder<T,B>
implements EntityDamageSource.EntityDamageSourceBuilder<T,B>
-
Field Summary
Fields inherited from class org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder
absolute, bypasses, creative, damageType, exhaustion, explosion, fire, magical, scales
-
Constructor Summary
-
Method Summary
Methods inherited from class org.spongepowered.api.event.cause.entity.damage.source.common.AbstractDamageSourceBuilder
absolute, bypassesArmor, creative, exhaustion, explosion, fire, from, magical, scalesWithDifficulty, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
Methods inherited from interface org.spongepowered.api.event.cause.entity.damage.source.DamageSource.DamageSourceBuilder
absolute, build, bypassesArmor, creative, exhaustion, explosion, fire, magical, scalesWithDifficulty, type, type
-
Field Details
-
source
-
-
Constructor Details
-
AbstractEntityDamageSourceBuilder
public AbstractEntityDamageSourceBuilder()
-
-
Method Details
-
entity
Description copied from interface:EntityDamageSource.EntityDamageSourceBuilder
Sets theEntity
as the damage "source".- Specified by:
entity
in interfaceEntityDamageSource.EntityDamageSourceBuilder<T extends EntityDamageSource,
B extends EntityDamageSource.EntityDamageSourceBuilder<T, B>> - Parameters:
entity
- The entity- Returns:
- This builder, for chaining
-
reset
Description copied from interface:Builder
Resets this builder to a "default" state such that there is no remaining data to set. This is to be the presumed "default" state.- Specified by:
reset
in interfaceBuilder<T extends EntityDamageSource,
B extends EntityDamageSource.EntityDamageSourceBuilder<T, B>> - Specified by:
reset
in interfaceResettableBuilder<T extends EntityDamageSource,
B extends EntityDamageSource.EntityDamageSourceBuilder<T, B>> - Overrides:
reset
in classAbstractDamageSourceBuilder<T extends EntityDamageSource,
B extends EntityDamageSource.EntityDamageSourceBuilder<T, B>> - Returns:
- This builder, for chaining
-