crwdns122463:0crwdne122463:0

crwdns122465:0:javadoc:crwdnd122465:0:javadoc:crwdnd122465:0:javadoc:crwdnd122465:0:doc:crwdne122465:0

crwdns122467:0:javadoc:crwdnd122467:0:javadoc:crwdnd122467:0:javadoc:crwdnd122467:0:javadoc:crwdne122467:0

crwdns122469:0crwdne122469:0

crwdns122471:0crwdne122471:0

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

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

crwdns122473:0crwdne122473:0

crwdns122475:0:javadoc:crwdne122475: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));
}

crwdns122477:0crwdne122477:0

crwdns122479:0:javadoc:crwdne122479:0

import org.spongepowered.api.data.manipulator.mutable.DisplayNameData;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.format.TextColors;

public void setDisplayName(Entity creeper) {
    DisplayNameData displayData = creeper.get(DisplayNameData.class).get();
    creeper.offer(displayData.displayName().set(Text.of(TextColors.DARK_AQUA,
                                                          "Inscrutable")));
}

crwdns122481:0:javadoc:crwdne122481: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, Text.of(TextColors.DARK_AQUA, "Inscrutable"));
}

crwdns122483:0:doc:crwdne122483:0