crwdns151991:0crwdne151991:0
crwdns151993:0:javadoc:crwdnd151993:0:javadoc:crwdnd151993:0:javadoc:crwdnd151993:0:doc:crwdne151993:0
crwdns151995:0:javadoc:crwdnd151995:0:javadoc:crwdnd151995:0:javadoc:crwdnd151995:0:javadoc:crwdne151995:0
crwdns151997:0crwdne151997:0
crwdns151999:0crwdne151999: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;
}
crwdns152001:0crwdne152001:0
crwdns152003:0:javadoc:crwdne152003: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));
}
crwdns152005:0crwdne152005:0
crwdns152007:0:javadoc:crwdne152007: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")));
}
crwdns152009:0:javadoc:crwdne152009: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"));
}
crwdns152011:0:doc:crwdne152011:0