Package net.glowstone.entity.monster
Class GlowZombie
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowLivingEntity
net.glowstone.entity.GlowMob
net.glowstone.entity.GlowCreature
net.glowstone.entity.monster.GlowMonster
net.glowstone.entity.monster.GlowZombie
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience,net.kyori.adventure.pointer.Pointered,net.kyori.adventure.sound.Sound.Emitter,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>,org.bukkit.attribute.Attributable,org.bukkit.command.CommandSender,org.bukkit.entity.Ageable,org.bukkit.entity.Creature,org.bukkit.entity.Damageable,org.bukkit.entity.Entity,org.bukkit.entity.LivingEntity,org.bukkit.entity.Mob,org.bukkit.entity.Monster,org.bukkit.entity.Zombie,org.bukkit.loot.Lootable,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.permissions.Permissible,org.bukkit.permissions.ServerOperator,org.bukkit.persistence.PersistentDataHolder,org.bukkit.projectiles.ProjectileSource
- Direct Known Subclasses:
GlowHusk,GlowPigZombie,GlowZombieVillager
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot -
Field Summary
Fields inherited from class net.glowstone.entity.GlowLivingEntity
deathTicks, health, maxHealth, movement, speed, taskManagerFields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock -
Constructor Summary
ConstructorsConstructorDescriptionGlowZombie(org.bukkit.Location loc) Creates a zombie.GlowZombie(org.bukkit.Location loc, org.bukkit.entity.EntityType type) Creates a zombie. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanBreed()List<com.flowpowered.network.Message>Creates a list ofMessages which can be sent to a client to spawn this entity.intgetAge()booleanprotected org.bukkit.SoundGet the ambient sound this entity makes randomly, or null for silence.intprotected org.bukkit.SoundGet the death sound of this entity, or null for silence.protected org.bukkit.SoundGet the hurt sound of this entity, or null for silence.protected floatThe pitch of the sounds this entity makes.org.bukkit.entity.Villager.ProfessionbooleanisAdult()booleanbooleanisBaby()booleanbooleanbooleanisUndead()Get whether or not this entity is undead.booleanvoidsetAdult()voidsetAge(int age) voidsetAgeLock(boolean ageLock) voidsetArmsRaised(boolean raised) voidsetBaby()voidsetBaby(boolean value) voidsetBreed(boolean b) voidsetCanBreakDoors(boolean canBreakDoors) voidsetConversionTime(int time) voidsetShouldBurnInDay(boolean shouldBurnInDay) voidsetVillager(boolean value) voidsetVillagerProfession(org.bukkit.entity.Villager.Profession profession) booleanvoidstartDrowning(int drownedConversionTime) voidbooleanMethods inherited from class net.glowstone.entity.monster.GlowMonster
canDespawnImmediately, pulseMethods inherited from class net.glowstone.entity.GlowCreature
getLootTable, getPathfinder, getSeed, getTarget, getType, isInDaylight, setLootTable, setSeed, setTargetMethods inherited from class net.glowstone.entity.GlowMob
getHeadRotationSpeed, getMaxHeadPitch, isAware, isLeftHanded, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAware, setLeftHandedMethods inherited from class net.glowstone.entity.GlowLivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, canTakeDamage, clearActiveItem, clearActivePotionEffects, createUpdateMessage, damage, entityInteract, getAbsorptionAmount, getActiveItem, getActivePotionEffects, getAmbientDelay, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getAttributeManager, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathTicks, getEquipment, getEquipmentMonitor, getEyeHeight, getEyeHeight, getEyeLocation, getFreezeTicks, getHandRaised, getHandRaisedTime, getHeadYaw, getHealth, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastDamager, getLastTwoTargetBlocks, getLineOfSight, getMaxFreezeTicks, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMemory, getMovement, getNoDamageTicks, getPlayerDamageTick, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getSoundVolume, getSpawnCategory, getSpeed, getState, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, getTaskManager, getTrackedPlayers, getVelocityFromMovement, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isArthropod, isClimbing, isCollidable, isFallFlying, isFreezeTickingLocked, isFrozen, isGliding, isHandRaised, isInPowderedSnow, isInvisible, isJumping, isRiptiding, isSleeping, isSwimming, isVisualFire, isWithinSolidBlock, jump, launchProjectile, launchProjectile, launchProjectile, launchProjectile, lockFreezeTicks, name, playAnimation, playPickupItemAnimation, pulsePhysics, rayTraceBlocks, rayTraceBlocks, registerAttribute, removePotionEffect, reset, resetMaxHealth, setAbsorptionAmount, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setFallFlying, setFreezeTicks, setGliding, setHeadYaw, setHealth, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLastDamager, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMemory, setMovement, setNoDamageTicks, setOnGround, setPlayerDamageTick, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSpeed, setState, setSwimming, setVisualFire, spawnAt, swingMainHand, swingOffHand, teamDisplayName, tryUseTotem, updatePotionEffectsMetadataMethods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, customName, customName, damage, damage, damage, eject, equals, fromMobSpawner, getBoundingBox, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOp, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBoxMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.attribute.Attributable
getAttribute, registerAttributeMethods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportAsyncMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaised, getHandRaisedTime, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isHandRaised, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.Lootable
clearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeedMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.Mob
getEquipment, getHeadRotationSpeed, getMaxHeadPitch, getPathfinder, getTarget, isAware, isInDaylight, isLeftHanded, lookAt, lookAt, lookAt, lookAt, lookAt, lookAt, setAware, setLeftHanded, setTargetMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
GlowZombie
public GlowZombie(org.bukkit.Location loc) Creates a zombie.- Parameters:
loc- the location
-
GlowZombie
public GlowZombie(org.bukkit.Location loc, org.bukkit.entity.EntityType type) Creates a zombie.- Parameters:
loc- the locationtype- the zombie type
-
-
Method Details
-
createSpawnMessage
Description copied from class:GlowEntityCreates a list ofMessages which can be sent to a client to spawn this entity. Implementations in concrete subclasses may return a shallowly immutable list.- Overrides:
createSpawnMessagein classGlowCreature- Returns:
- A list of messages which can spawn this entity.
-
isBaby
public boolean isBaby()- Specified by:
isBabyin interfaceorg.bukkit.entity.Zombie
-
setBaby
public void setBaby(boolean value) - Specified by:
setBabyin interfaceorg.bukkit.entity.Zombie
-
setBaby
public void setBaby()- Specified by:
setBabyin interfaceorg.bukkit.entity.Ageable
-
isVillager
public boolean isVillager()- Specified by:
isVillagerin interfaceorg.bukkit.entity.Zombie
-
setVillager
public void setVillager(boolean value) - Specified by:
setVillagerin interfaceorg.bukkit.entity.Zombie
-
getVillagerProfession
public org.bukkit.entity.Villager.Profession getVillagerProfession()- Specified by:
getVillagerProfessionin interfaceorg.bukkit.entity.Zombie
-
setVillagerProfession
public void setVillagerProfession(org.bukkit.entity.Villager.Profession profession) - Specified by:
setVillagerProfessionin interfaceorg.bukkit.entity.Zombie
-
isConverting
public boolean isConverting()- Specified by:
isConvertingin interfaceorg.bukkit.entity.Zombie
-
getConversionTime
public int getConversionTime()- Specified by:
getConversionTimein interfaceorg.bukkit.entity.Zombie
-
setConversionTime
public void setConversionTime(int time) - Specified by:
setConversionTimein interfaceorg.bukkit.entity.Zombie
-
isDrowning
public boolean isDrowning()- Specified by:
isDrowningin interfaceorg.bukkit.entity.Zombie
-
startDrowning
public void startDrowning(int drownedConversionTime) - Specified by:
startDrowningin interfaceorg.bukkit.entity.Zombie
-
stopDrowning
public void stopDrowning()- Specified by:
stopDrowningin interfaceorg.bukkit.entity.Zombie
-
isArmsRaised
public boolean isArmsRaised()- Specified by:
isArmsRaisedin interfaceorg.bukkit.entity.Zombie
-
setArmsRaised
public void setArmsRaised(boolean raised) - Specified by:
setArmsRaisedin interfaceorg.bukkit.entity.Zombie
-
shouldBurnInDay
public boolean shouldBurnInDay()- Specified by:
shouldBurnInDayin interfaceorg.bukkit.entity.Zombie
-
setShouldBurnInDay
public void setShouldBurnInDay(boolean shouldBurnInDay) - Specified by:
setShouldBurnInDayin interfaceorg.bukkit.entity.Zombie
-
canBreakDoors
public boolean canBreakDoors()- Specified by:
canBreakDoorsin interfaceorg.bukkit.entity.Zombie
-
supportsBreakingDoors
public boolean supportsBreakingDoors()- Specified by:
supportsBreakingDoorsin interfaceorg.bukkit.entity.Zombie
-
getSoundPitch
protected float getSoundPitch()Description copied from class:GlowLivingEntityThe pitch of the sounds this entity makes.- Overrides:
getSoundPitchin classGlowLivingEntity- Returns:
- the pitch of the sounds
-
getHurtSound
protected org.bukkit.Sound getHurtSound()Description copied from class:GlowLivingEntityGet the hurt sound of this entity, or null for silence.- Overrides:
getHurtSoundin classGlowLivingEntity- Returns:
- the hurt sound if available
-
getDeathSound
protected org.bukkit.Sound getDeathSound()Description copied from class:GlowLivingEntityGet the death sound of this entity, or null for silence.- Overrides:
getDeathSoundin classGlowLivingEntity- Returns:
- the death sound if available
-
getAmbientSound
protected org.bukkit.Sound getAmbientSound()Description copied from class:GlowLivingEntityGet the ambient sound this entity makes randomly, or null for silence.- Overrides:
getAmbientSoundin classGlowLivingEntity- Returns:
- the ambient sound if available
-
isUndead
public boolean isUndead()Description copied from class:GlowLivingEntityGet whether or not this entity is undead.- Overrides:
isUndeadin classGlowLivingEntity- Returns:
- true if this entity is undead, false otherwise
-
setAdult
public void setAdult()- Specified by:
setAdultin interfaceorg.bukkit.entity.Ageable
-
isAdult
public boolean isAdult()- Specified by:
isAdultin interfaceorg.bukkit.entity.Ageable
-
canBreed
public boolean canBreed()- Specified by:
canBreedin interfaceorg.bukkit.entity.Ageable
-
setBreed
public void setBreed(boolean b) - Specified by:
setBreedin interfaceorg.bukkit.entity.Ageable
-
getAgeLock
public boolean getAgeLock()- Specified by:
getAgeLockin interfaceorg.bukkit.entity.Ageable
-
setCanBreakDoors
public void setCanBreakDoors(boolean canBreakDoors) - Specified by:
setCanBreakDoorsin interfaceorg.bukkit.entity.Zombie
-
getAge
public int getAge()- Specified by:
getAgein interfaceorg.bukkit.entity.Ageable
-
setAge
public void setAge(int age) - Specified by:
setAgein interfaceorg.bukkit.entity.Ageable
-
setAgeLock
public void setAgeLock(boolean ageLock) - Specified by:
setAgeLockin interfaceorg.bukkit.entity.Ageable
-