Class AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<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>
-
- org.spongepowered.api.event.cause.entity.damage.source.common.AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder<T,B>
-
- All Implemented Interfaces:
Buildable.Builder<T>
,DamageSource.DamageSourceBuilder<T,B>
,EntityDamageSource.EntityDamageSourceBuilder<T,B>
,IndirectEntityDamageSource.AbstractBuilder<T,B>
,Builder<T,B>
,CopyableBuilder<T,B>
,ResettableBuilder<T,B>
- Enclosing class:
- AbstractIndirectEntityDamageSource
public abstract static class AbstractIndirectEntityDamageSource.AbstractIndirectEntityDamageSourceBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>> extends AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T,B> implements IndirectEntityDamageSource.AbstractBuilder<T,B>
-
-
Field Summary
Fields Modifier and Type Field Description protected Entity
indirect
protected Entity
sourceEntity
-
Fields inherited from class org.spongepowered.api.event.cause.entity.damage.source.common.AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder
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 AbstractIndirectEntityDamageSourceBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
entity(Entity entity)
Sets theEntity
as the damage "source".B
proxySource(Entity projectile)
Sets theEntity
that is indirectly damaging.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
-
-
-
-
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 IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
- Overrides:
entity
in classAbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
- Parameters:
entity
- The entity- Returns:
- This builder, for chaining
-
proxySource
public B proxySource(Entity projectile)
Description copied from interface:IndirectEntityDamageSource.AbstractBuilder
Sets theEntity
that is indirectly damaging.- Specified by:
proxySource
in interfaceIndirectEntityDamageSource.AbstractBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
- Parameters:
projectile
- The indirect 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 IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
- Specified by:
reset
in interfaceResettableBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
- Overrides:
reset
in classAbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
- Returns:
- This builder, for chaining
-
-