crwdns132663:0crwdne132663:0
crwdns132665:0:javadoc:crwdnd132665:0:javadoc:crwdnd132665:0:javadoc:crwdnd132665:0:doc:crwdne132665:0
crwdns132667:0:javadoc:crwdnd132667:0:javadoc:crwdnd132667:0:javadoc:crwdnd132667:0:javadoc:crwdne132667:0
crwdns132669:0crwdne132669:0
crwdns132671:0crwdne132671:0
import org.spongepowered.api.entity.Entity;
import org.spongepowered.api.entity.EntityTypes;
public boolean isCreeper(Entity entity) {
if (entity.getType().equals(EntityTypes.CREEPER)) {
return true;
}
return false;
}
crwdns132673:0crwdne132673:0
crwdns132675:0:javadoc:crwdne132675:0
import org.spongepowered.api.data.manipulator.mutable.entity.ExplosiveRadiusData;
public void explosionRadius50(Entity creeper) {
ExplosiveRadiusData radiusData = creeper.get(ExplosiveRadiusData.class).get();
creeper.offer(radiusData.explosiveRadius().set(50));
}
crwdns132677:0crwdne132677:0
crwdns132679:0:javadoc:crwdne132679: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")));
}
crwdns132681:0:javadoc:crwdne132681:0
import org.spongepowered.api.data.key.Keys;
public void explosionRadius50(Entity creeper) {
creeper.offer(Keys.EXPLOSIVE_RADIUS, 50);
creeper.offer(Keys.DISPLAY_NAME, Text.of(TextColors.DARK_AQUA, "Inscrutable"));
}
crwdns132683:0:doc:crwdne132683:0