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>
Modifier and Type | Field and Description |
---|---|
protected Entity |
indirect |
protected Entity |
sourceEntity |
source
absolute, bypasses, creative, damageType, exhaustion, explosion, magical, scales
Constructor and Description |
---|
AbstractIndirectEntityDamageSourceBuilder() |
Modifier and Type | Method and Description |
---|---|
B |
entity(Entity entity)
Sets the
Entity as the damage "source". |
B |
proxySource(Entity projectile)
Sets the
Entity that is indirectly damaging. |
B |
reset()
Resets this builder to a "default" state such that there is no
remaining data to set.
|
absolute, bypassesArmor, creative, exhaustion, explosion, from, magical, scalesWithDifficulty, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
absolute, build, bypassesArmor, creative, exhaustion, explosion, magical, scalesWithDifficulty, type
from
public AbstractIndirectEntityDamageSourceBuilder()
public B entity(Entity entity)
EntityDamageSource.EntityDamageSourceBuilder
Entity
as the damage "source".entity
in interface EntityDamageSource.EntityDamageSourceBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
entity
in class AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
entity
- The entitypublic B proxySource(Entity projectile)
IndirectEntityDamageSource.AbstractBuilder
Entity
that is indirectly damaging.proxySource
in interface IndirectEntityDamageSource.AbstractBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
projectile
- The indirect entitypublic B reset()
ResettableBuilder
reset
in interface ResettableBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>
reset
in class AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T extends IndirectEntityDamageSource,B extends IndirectEntityDamageSource.AbstractBuilder<T,B>>