public static class DamageSourcePredicate.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private Boolean |
bypassesArmor |
private Boolean |
bypassesInvulnerability |
private Boolean |
bypassesMagic |
private EntityPredicate |
directEntity |
private Boolean |
isExplosion |
private Boolean |
isFire |
private Boolean |
isLightning |
private Boolean |
isMagic |
private Boolean |
isProjectile |
private EntityPredicate |
sourceEntity |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DamageSourcePredicate |
build() |
static DamageSourcePredicate.Builder |
create() |
DamageSourcePredicate.Builder |
directEntity(EntityPredicate.Builder builder) |
DamageSourcePredicate.Builder |
lightning(Boolean lightning) |
DamageSourcePredicate.Builder |
projectile(Boolean projectile) |
private Boolean isProjectile
private Boolean isExplosion
private Boolean bypassesArmor
private Boolean bypassesInvulnerability
private Boolean bypassesMagic
private Boolean isFire
private Boolean isMagic
private Boolean isLightning
private EntityPredicate directEntity
private EntityPredicate sourceEntity
public static DamageSourcePredicate.Builder create()
public DamageSourcePredicate.Builder projectile(Boolean projectile)
public DamageSourcePredicate.Builder lightning(Boolean lightning)
public DamageSourcePredicate.Builder directEntity(EntityPredicate.Builder builder)
public DamageSourcePredicate build()