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:
Buildable.Builder<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 Modifier and Type Field Description protected Entity
source
-
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
Constructors Constructor Description AbstractEntityDamageSourceBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
entity(Entity entity)
Sets theEntity
as the damage "source".B
reset()
Resets this builder to a "default" state such that there is no remaining data to set.-
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 Detail
-
source
protected Entity source
-
-
Method Detail
-
entity
public B entity(Entity 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
public B 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
-
-