Class Martian
java.lang.Object
io.github.addoncommunity.galactifun.api.aliens.Alien<org.bukkit.entity.ZombieVillager>
io.github.addoncommunity.galactifun.base.aliens.Martian
Class for the martian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanSpawnInLightLevel(int lightLevel) This method returns whether the alien can spawn in the given light level.voidonDeath(org.bukkit.event.entity.EntityDeathEvent e) voidonInteract(org.bukkit.event.player.PlayerInteractEntityEvent e) voidonSpawn(org.bukkit.entity.ZombieVillager spawned) Methods inherited from class Alien
alienManager, attemptSpawn, clazz, getSpawnHeightOffset, hashCode, id, isRegistered, maxHealth, name, onAttack, onCastSpell, onDamage, onEntityTick, onHit, onShoot, onTarget, onTick, onUniqueTick, register, spawn, spawnChance
-
Constructor Details
-
Martian
-
-
Method Details
-
onSpawn
-
onDeath
-
onInteract
public void onInteract(@Nonnull org.bukkit.event.player.PlayerInteractEntityEvent e) - Overrides:
onInteractin classAlien<org.bukkit.entity.ZombieVillager>
-
canSpawnInLightLevel
protected boolean canSpawnInLightLevel(int lightLevel) Description copied from class:AlienThis method returns whether the alien can spawn in the given light level. By default uses theZombielight level conditions- Overrides:
canSpawnInLightLevelin classAlien<org.bukkit.entity.ZombieVillager>- Parameters:
lightLevel- the light level of the block the alien is attempting to spawn on- Returns:
trueif the alien can spawn in this light level,falseotherwise
-