public abstract static class AbstractEntityDamageSource.AbstractEntityDamageSourceBuilder<T extends EntityDamageSource,B extends EntityDamageSource.EntityDamageSourceBuilder<T,B>> extends AbstractDamageSourceBuilder<T,B> implements EntityDamageSource.EntityDamageSourceBuilder<T,B>
Modifier and Type | Field and Description |
---|---|
protected Entity |
source |
absolute, bypasses, creative, damageType, exhaustion, explosion, magical, scales
Constructor and Description |
---|
AbstractEntityDamageSourceBuilder() |
Modifier and Type | Method and Description |
---|---|
B |
entity(Entity entity)
Sets the
Entity as the damage "source". |
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
protected Entity source
public B entity(Entity entity)
EntityDamageSource.EntityDamageSourceBuilder
Entity
as the damage "source".entity
in interface EntityDamageSource.EntityDamageSourceBuilder<T extends EntityDamageSource,B extends EntityDamageSource.EntityDamageSourceBuilder<T,B>>
entity
- The entitypublic B reset()
ResettableBuilder
reset
in interface ResettableBuilder<T extends EntityDamageSource,B extends EntityDamageSource.EntityDamageSourceBuilder<T,B>>
reset
in class AbstractDamageSourceBuilder<T extends EntityDamageSource,B extends EntityDamageSource.EntityDamageSourceBuilder<T,B>>