Package de.eimmer.wesen
Interface Zombie
- All Superinterfaces:
Alterbar
,Ausbeutbar
,BefehlAbsender
,Berechtigtbar
,Beschaedigbar
,BestaendigeDatenInhaber
,Feind
,Kreatur
,Lebewesen
,MerkmalInhaber
,MetadatenInhaber
,Mob
,Monster
,Nennbar
,ProjektilQuelle
,ServerBetreiber
,Wesen
- All Known Subinterfaces:
Ertrunkener
,Schale
,SchweineZombie
,ZombieDorfbewohner
Represents a Zombie.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets whether this zombie can break doorsint
Gets the amount of ticks until this wesen will be converted to a Ertrunkener as a result of being underwater.Deprecated.boolean
isBaby()
Deprecated.boolean
Get if this wesen is in the process of converting to a Ertrunkener as a result of being underwater.boolean
Deprecated.check if instanceofZombieDorfbewohner
.void
setBaby
(boolean flag) Deprecated.void
setCanBreakDoors
(boolean flag) Sets whether this zombie can break doors This will be ignored if the wesen is a Ertrunkener.void
setConversionTime
(int time) Sets the amount of ticks until this wesen will be converted to a Ertrunkener as a result of being underwater.void
setVillager
(boolean flag) Deprecated.must spawnZombieDorfbewohner
.void
setVillagerProfession
(Dorfbewohner.Profession profession) Deprecated.Methods inherited from interface de.eimmer.wesen.Alterbar
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
Methods inherited from interface de.eimmer.beute.Ausbeutbar
getLootTable, getSeed, setLootTable, setSeed
Methods inherited from interface de.eimmer.befehl.BefehlAbsender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface de.eimmer.berechtigungen.Berechtigtbar
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface de.eimmer.wesen.Beschaedigbar
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
Methods inherited from interface de.eimmer.bestaendigkeit.BestaendigeDatenInhaber
getPersistentDataContainer
Methods inherited from interface de.eimmer.wesen.Lebewesen
addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
Methods inherited from interface de.eimmer.merkmal.MerkmalInhaber
getAttribute
Methods inherited from interface de.eimmer.metadaten.MetadatenInhaber
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface de.eimmer.wesen.Mob
getAmbientSound, getTarget, isAware, setAware, setTarget
Methods inherited from interface de.eimmer.Nennbar
getCustomName, setCustomName
Methods inherited from interface de.eimmer.projektile.ProjektilQuelle
launchProjectile, launchProjectile
Methods inherited from interface de.eimmer.berechtigungen.ServerBetreiber
isOp, setOp
Methods inherited from interface de.eimmer.wesen.Wesen
addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, teleport, teleport, teleport, teleport
-
Method Details
-
isBaby
Deprecated.Gets whether the zombie is a baby- Returns:
- Whether the zombie is a baby
-
setBaby
Deprecated.Sets whether the zombie is a baby- Parameters:
flag
- Whether the zombie is a baby
-
isVillager
Deprecated.check if instanceofZombieDorfbewohner
.Gets whether the zombie is a villager- Returns:
- Whether the zombie is a villager
-
setVillager
Deprecated.must spawnZombieDorfbewohner
.- Parameters:
flag
- flag
-
setVillagerProfession
Deprecated.- Parameters:
profession
- profession- See Also:
-
getVillagerProfession
Deprecated.- Returns:
- profession
- See Also:
-
isConverting
boolean isConverting()Get if this wesen is in the process of converting to a Ertrunkener as a result of being underwater.- Returns:
- conversion status
-
getConversionTime
int getConversionTime()Gets the amount of ticks until this wesen will be converted to a Ertrunkener as a result of being underwater. When this reaches 0, the wesen will be converted.- Returns:
- conversion time
- Throws:
IllegalStateException
- ifisConverting()
is false.
-
setConversionTime
void setConversionTime(int time) Sets the amount of ticks until this wesen will be converted to a Ertrunkener as a result of being underwater. When this reaches 0, the wesen will be converted. A value of less than 0 will stop the current conversion process without converting the current wesen.- Parameters:
time
- new conversion time
-
canBreakDoors
boolean canBreakDoors()Gets whether this zombie can break doors- Returns:
- Whether this zombie can break doors
-
setCanBreakDoors
void setCanBreakDoors(boolean flag) Sets whether this zombie can break doors This will be ignored if the wesen is a Ertrunkener. Will also stop the aktion if the wesen is currently breaking a door.- Parameters:
flag
- Whether this zombie can break doors
-
Alterbar.isAdult()