crwdns142047:0crwdne142047:0

Warning

crwdns142049:0crwdne142049:0

crwdns142051:0:javadoc:crwdnd142051:0:javadoc:crwdnd142051:0:javadoc:crwdnd142051:0:doc:crwdne142051:0

crwdns142053:0:javadoc:crwdnd142053:0:javadoc:crwdnd142053:0:javadoc:crwdnd142053:0:javadoc:crwdne142053:0

crwdns142055:0crwdne142055:0

crwdns142057:0crwdne142057:0

import org.spongepowered.api.entity.Entity;
import org.spongepowered.api.entity.EntityTypes;

public boolean isCreeper(Entity entity) {
    return entity.getType().equals(EntityTypes.CREEPER);
}

crwdns142059:0crwdne142059:0

crwdns142061:0:javadoc:crwdne142061:0

import org.spongepowered.api.data.manipulator.mutable.entity.ExplosiveRadiusData;

public void explosionRadius50(Entity creeper) {
    ExplosionRadiusData radiusData = creeper.get(ExplosionRadiusData.class).get();
    creeper.offer(radiusData.explosionRadius().setTo(50));
}

crwdns142063:0crwdne142063:0

crwdns142065:0:javadoc:crwdne142065:0

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.format.NamedTextColor;
import org.spongepowered.api.data.manipulator.mutable.DisplayNameData;

public void setDisplayName(Entity creeper) {
    DisplayNameData displayData = creeper.get(DisplayNameData.class).get();
    creeper.offer(displayData.displayName()
        .set(Component.text("Inscrutable", NamedTextColor.DARK_AQUA)));
}

crwdns142067:0:javadoc:crwdne142067:0

import org.spongepowered.api.data.key.Keys;

public void explosionRadius50(Entity creeper) {
    creeper.offer(Keys.EXPLOSION_RADIUS, Optional.of(50));
    creeper.offer(Keys.DISPLAY_NAME, Component.text("Inscrutable", NamedTextColor.DARK_AQUA));
}

crwdns156957:0:doc:crwdne156957:0