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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsolute, build, bypassesArmor, creative, exhaustion, explosion, magical, scalesWithDifficulty, typefromprotected Entity source
public B entity(Entity entity)
EntityDamageSource.EntityDamageSourceBuilderEntity as the damage "source".entity in interface EntityDamageSource.EntityDamageSourceBuilder<T extends EntityDamageSource,B extends EntityDamageSource.EntityDamageSourceBuilder<T,B>>entity - The entitypublic B reset()
ResettableBuilderreset 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>>