spigot kill entity
@EventHandler
public void onEntitySpawn(EntitySpawnEvent event) {
if (event.getEntityType() == EntityType.CREEPER) {
if (event.getEntity() instanceof Damageable) {
Damageable creeper = (Damageable) event.getEntity();
creeper.damage(1000);
}
}
}
Also in Java:
- java stack methods
- number to char java
- JavaFX onMouseEntered
- do while loop java
- java flood fill
- java create folder
- java set example
- dataframe to dict without index
- how to create a button in java
- déclarer un tableau en java
- non primitive data types in java
- 2 decimal places print format JAVA
- how to set a windows background image tkinter
- find frequency of each word in a string in java
- how to do for each in java
- islowercase java
- demo java file
- java jaxb unmarshall xml to map
- java print type of object
- android how to know when snackbar is done
- how to reverse a list in java
- java parse xml string
- entre clavier java
- how to remove a certain string in a arraylist java