ZombieCreature

class ZombieCreature(stats: EntityStats) : MinecraftEntity

Zombie entity

Author

Interfiber

Parameters

stats

The EntityStats to use for the zombie

Constructors

ZombieCreature
Link copied to clipboard
fun ZombieCreature(stats: EntityStats)
The EntityStats to use for the zombie

Functions

addAIGroup
Link copied to clipboard
open fun addAIGroup(group: EntityAIGroup)
open fun addAIGroup(goalSelectors: MutableList<GoalSelector>, targetSelectors: MutableList<TargetSelector>)
addEffect
Link copied to clipboard
open fun addEffect(@NotNull() potion: @NotNull() Potion)
addPassenger
Link copied to clipboard
open fun addPassenger(@NotNull() entity: @NotNull() Entity)
addPermission
Link copied to clipboard
open fun addPermission(@NotNull() permission: @NotNull() Permission)
addViewer
Link copied to clipboard
override fun addViewer(@NotNull() player: @NotNull() Player): Boolean
aiTick
Link copied to clipboard
open fun aiTick(time: Long)
asHoverEvent
Link copied to clipboard
@NotNull()
open fun asHoverEvent(): @NotNull() HoverEvent<HoverEvent.ShowEntity>
@NotNull()
open override fun asHoverEvent(@NotNull() op: @NotNull() UnaryOperator<HoverEvent.ShowEntity>): @NotNull() HoverEvent<HoverEvent.ShowEntity>
askSynchronization
Link copied to clipboard
open fun askSynchronization()
attack
Link copied to clipboard
open fun attack(@NotNull() target: @NotNull() Entity)
open fun attack(@NotNull() target: @NotNull() Entity, swingHand: Boolean)
autoViewEntities
Link copied to clipboard
@ApiStatus.Experimental()
open fun autoViewEntities(): Boolean
canPickupItem
Link copied to clipboard
open fun canPickupItem(): Boolean
clearEffects
Link copied to clipboard
open fun clearEffects()
damage
Link copied to clipboard
open fun damage(@NotNull() type: @NotNull() DamageType, value: Float): Boolean
eventNode
Link copied to clipboard
@ApiStatus.Experimental()
@NotNull()
open override fun eventNode(): @NotNull() EventNode<EntityEvent>
getAcquirable
Link copied to clipboard
@ApiStatus.Experimental()
@NotNull()
open fun <T : Entity> getAcquirable(): @NotNull() Acquirable<T>
getActiveEffects
Link copied to clipboard
@NotNull()
open fun getActiveEffects(): @NotNull() MutableList<@NotNull() TimedPotion>
getAIGroups
Link copied to clipboard
open override fun getAIGroups(): MutableCollection<EntityAIGroup>
getAliveTicks
Link copied to clipboard
open fun getAliveTicks(): Long
getAllPermissions
Link copied to clipboard
@NotNull()
open override fun getAllPermissions(): @NotNull() MutableSet<Permission>
getArrowCount
Link copied to clipboard
open fun getArrowCount(): Int
getAttribute
Link copied to clipboard
@NotNull()
open fun getAttribute(@NotNull() attribute: @NotNull() Attribute): @NotNull() AttributeInstance
getAttributeValue
Link copied to clipboard
open fun getAttributeValue(@NotNull() attribute: @NotNull() Attribute): Float
getBoots
Link copied to clipboard
@NotNull()
open override fun getBoots(): @NotNull() ItemStack
getBoundingBox
Link copied to clipboard
@NotNull()
open fun getBoundingBox(): @NotNull() BoundingBox
getChestplate
Link copied to clipboard
@NotNull()
open override fun getChestplate(): @NotNull() ItemStack
getChunk
Link copied to clipboard
@Nullable()
open fun getChunk(): @Nullable() Chunk?
getCustomName
Link copied to clipboard
@Nullable()
open fun getCustomName(): @Nullable() Component?
getDistance
Link copied to clipboard
open fun getDistance(@NotNull() point: @NotNull() Point): Double
open fun getDistance(@NotNull() entity: @NotNull() Entity): Double
getDistanceSquared
Link copied to clipboard
open fun getDistanceSquared(@NotNull() entity: @NotNull() Entity): Double
getEntityId
Link copied to clipboard
open fun getEntityId(): Int
getEntityMeta
Link copied to clipboard
@NotNull()
open fun getEntityMeta(): @NotNull() EntityMeta
getEntityType
Link copied to clipboard
@NotNull()
open fun getEntityType(): @NotNull() EntityType
getEquipment
Link copied to clipboard
@NotNull()
open fun getEquipment(@NotNull() slot: @NotNull() EquipmentSlot): @NotNull() ItemStack
getEquipmentsPacket
Link copied to clipboard
@NotNull()
open fun getEquipmentsPacket(): @NotNull() EntityEquipmentPacket
getEyeHeight
Link copied to clipboard
open fun getEyeHeight(): Double
getFireDamagePeriod
Link copied to clipboard
open fun getFireDamagePeriod(): Long
getGravityAcceleration
Link copied to clipboard
open fun getGravityAcceleration(): Double
getGravityDragPerTick
Link copied to clipboard
open fun getGravityDragPerTick(): Double
getGravityTickCount
Link copied to clipboard
open fun getGravityTickCount(): Int
getHealth
Link copied to clipboard
open fun getHealth(): Float
getHelmet
Link copied to clipboard
@NotNull()
open override fun getHelmet(): @NotNull() ItemStack
getInstance
Link copied to clipboard
@Nullable()
open fun getInstance(): @Nullable() Instance?
getItemInHand
Link copied to clipboard
@NotNull()
open fun getItemInHand(@NotNull() hand: @NotNull() Player.Hand): @NotNull() ItemStack
getItemInMainHand
Link copied to clipboard
@NotNull()
open override fun getItemInMainHand(): @NotNull() ItemStack
getItemInOffHand
Link copied to clipboard
@NotNull()
open override fun getItemInOffHand(): @NotNull() ItemStack
getLastDamageSource
Link copied to clipboard
@Nullable()
open fun getLastDamageSource(): @Nullable() DamageType?
getLeggings
Link copied to clipboard
@NotNull()
open override fun getLeggings(): @NotNull() ItemStack
getLineOfSight
Link copied to clipboard
open fun getLineOfSight(maxDistance: Int): MutableList<Point>
getLineOfSightEntity
Link copied to clipboard
@Nullable()
open fun getLineOfSightEntity(range: Double, predicate: Predicate<Entity>): @Nullable() Entity?
getLivingEntityMeta
Link copied to clipboard
open fun getLivingEntityMeta(): LivingEntityMeta
getMaxHealth
Link copied to clipboard
open fun getMaxHealth(): Float
getMetadataPacket
Link copied to clipboard
@NotNull()
open fun getMetadataPacket(): @NotNull() EntityMetaDataPacket
getNavigator
Link copied to clipboard
@NotNull()
open override fun getNavigator(): @NotNull() Navigator
getPassengers
Link copied to clipboard
@NotNull()
open fun getPassengers(): @NotNull() MutableSet<@NotNull() Entity>
getPassengersPacket
Link copied to clipboard
@NotNull()
open fun getPassengersPacket(): @NotNull() SetPassengersPacket
getPermission
Link copied to clipboard
@Nullable()
open fun getPermission(@NotNull() permissionName: @NotNull() String): @Nullable() Permission?
getPose
Link copied to clipboard
@NotNull()
open fun getPose(): @NotNull() Entity.Pose
getPosition
Link copied to clipboard
@NotNull()
open fun getPosition(): @NotNull() Pos
getPropertiesPacket
Link copied to clipboard
@NotNull()
open fun getPropertiesPacket(): @NotNull() EntityPropertiesPacket
getRemovalAnimationDelay
Link copied to clipboard
open fun getRemovalAnimationDelay(): Int
getTag
Link copied to clipboard
open override fun <T : Any> getTag(@NotNull() tag: @NotNull() Tag<T>): @UnknownNullability() T
getTarget
Link copied to clipboard
@Nullable()
open fun getTarget(): @Nullable() Entity?
getTargetBlockPosition
Link copied to clipboard
open fun getTargetBlockPosition(maxDistance: Int): Point
getTeam
Link copied to clipboard
open fun getTeam(): Team
getUuid
Link copied to clipboard
@NotNull()
open fun getUuid(): @NotNull() UUID
getVehicle
Link copied to clipboard
@Nullable()
open fun getVehicle(): @Nullable() Entity?
getVelocity
Link copied to clipboard
@NotNull()
open fun getVelocity(): @NotNull() Vec
getVelocityForPacket
Link copied to clipboard
@NotNull()
open fun getVelocityForPacket(): @NotNull() Vec
getVelocityPacket
Link copied to clipboard
@NotNull()
open fun getVelocityPacket(): @NotNull() EntityVelocityPacket
getViewers
Link copied to clipboard
@NotNull()
open override fun getViewers(): @NotNull() MutableSet<Player>
getViewersAsAudience
Link copied to clipboard
@NotNull()
open fun getViewersAsAudience(): @NotNull() Audience
getViewersAsAudiences
Link copied to clipboard
@NotNull()
open fun getViewersAsAudiences(): @NotNull() MutableIterable<Audience>
handleVoid
Link copied to clipboard
open override fun handleVoid()
hasEquipment
Link copied to clipboard
open fun hasEquipment(@NotNull() slot: @NotNull() EquipmentSlot): Boolean
hasLineOfSight
Link copied to clipboard
open fun hasLineOfSight(entity: Entity): Boolean
open fun hasLineOfSight(entity: Entity, exactView: Boolean): Boolean
hasNoGravity
Link copied to clipboard
open fun hasNoGravity(): Boolean
hasPassenger
Link copied to clipboard
open fun hasPassenger(): Boolean
hasPermission
Link copied to clipboard
open fun hasPermission(@NotNull() permissionName: @NotNull() String): Boolean
open fun hasPermission(@NotNull() permission: @NotNull() Permission): Boolean
open fun hasPermission(@NotNull() permissionName: @NotNull() String, @Nullable() permissionVerifier: @Nullable() PermissionVerifier?): Boolean
hasPredictableViewers
Link copied to clipboard
open fun hasPredictableViewers(): Boolean
hasTag
Link copied to clipboard
open override fun hasTag(@NotNull() tag: @NotNull() Tag<*>): Boolean
hasVelocity
Link copied to clipboard
open fun hasVelocity(): Boolean
heal
Link copied to clipboard
open fun heal()
isActive
Link copied to clipboard
open fun isActive(): Boolean
isAutoViewable
Link copied to clipboard
open fun isAutoViewable(): Boolean
isCustomNameVisible
Link copied to clipboard
open fun isCustomNameVisible(): Boolean
isDead
Link copied to clipboard
open fun isDead(): Boolean
isFlyingWithElytra
Link copied to clipboard
open fun isFlyingWithElytra(): Boolean
isGlowing
Link copied to clipboard
open fun isGlowing(): Boolean
isImmune
Link copied to clipboard
open fun isImmune(@NotNull() type: @NotNull() DamageType): Boolean
isInvisible
Link copied to clipboard
open fun isInvisible(): Boolean
isInvulnerable
Link copied to clipboard
open fun isInvulnerable(): Boolean
isOnFire
Link copied to clipboard
open fun isOnFire(): Boolean
isOnGround
Link copied to clipboard
open fun isOnGround(): Boolean
isRemoved
Link copied to clipboard
open fun isRemoved(): Boolean
isSilent
Link copied to clipboard
open fun isSilent(): Boolean
isSneaking
Link copied to clipboard
open fun isSneaking(): Boolean
isSprinting
Link copied to clipboard
open fun isSprinting(): Boolean
isViewer
Link copied to clipboard
open fun isViewer(@NotNull() player: @NotNull() Player): Boolean
kill
Link copied to clipboard
open override fun kill()
lookAt
Link copied to clipboard
open fun lookAt(@NotNull() point: @NotNull() Point)
open fun lookAt(@NotNull() entity: @NotNull() Entity)
onAttributeChanged
Link copied to clipboard
open fun onAttributeChanged(@NotNull() attributeInstance: @NotNull() AttributeInstance)
refreshActiveHand
Link copied to clipboard
open fun refreshActiveHand(isHandActive: Boolean, offHand: Boolean, riptideSpinAttack: Boolean)
refreshCurrentChunk
Link copied to clipboard
@ApiStatus.Internal()
open fun refreshCurrentChunk(currentChunk: Chunk)
refreshIsDead
Link copied to clipboard
open fun refreshIsDead(isDead: Boolean)
refreshPosition
Link copied to clipboard
@ApiStatus.Internal()
open fun refreshPosition(@NotNull() newPosition: @NotNull() Pos)
@ApiStatus.Internal()
open fun refreshPosition(@NotNull() newPosition: @NotNull() Pos, ignoreView: Boolean)
remove
Link copied to clipboard
open fun remove()
removeEffect
Link copied to clipboard
open fun removeEffect(@NotNull() effect: @NotNull() PotionEffect)
removePassenger
Link copied to clipboard
open fun removePassenger(@NotNull() entity: @NotNull() Entity)
removePermission
Link copied to clipboard
open fun removePermission(@NotNull() permissionName: @NotNull() String)
open fun removePermission(@NotNull() permission: @NotNull() Permission)
removeTag
Link copied to clipboard
open override fun removeTag(@NotNull() tag: @NotNull() Tag<*>)
removeViewer
Link copied to clipboard
override fun removeViewer(@NotNull() player: @NotNull() Player): Boolean
scheduleNextTick
Link copied to clipboard
open fun scheduleNextTick(@NotNull() callback: @NotNull() Consumer<Entity>)
scheduler
Link copied to clipboard
@NotNull()
open override fun scheduler(): @NotNull() Scheduler
scheduleRemove
Link copied to clipboard
open fun scheduleRemove(delay: Duration)
open fun scheduleRemove(delay: Long, @NotNull() temporalUnit: @NotNull() TemporalUnit)
sendPacketsToViewers
Link copied to clipboard
open fun sendPacketsToViewers(@NotNull() vararg packets: @NotNull() SendablePacket)
open fun sendPacketsToViewers(@NotNull() packets: @NotNull() MutableCollection<SendablePacket>)
sendPacketToViewers
Link copied to clipboard
open fun sendPacketToViewers(@NotNull() packet: @NotNull() SendablePacket)
sendPacketToViewersAndSelf
Link copied to clipboard
open fun sendPacketToViewersAndSelf(@NotNull() packet: @NotNull() SendablePacket)
setArrowCount
Link copied to clipboard
open fun setArrowCount(arrowCount: Int)
setAutoViewable
Link copied to clipboard
open fun setAutoViewable(autoViewable: Boolean)
setAutoViewEntities
Link copied to clipboard
@ApiStatus.Experimental()
open fun setAutoViewEntities(autoViewer: Boolean)
setBoots
Link copied to clipboard
open override fun setBoots(@NotNull() itemStack: @NotNull() ItemStack)
setBoundingBox
Link copied to clipboard
open override fun setBoundingBox(boundingBox: BoundingBox)
open fun setBoundingBox(width: Double, height: Double, depth: Double)
setCanPickupItem
Link copied to clipboard
open fun setCanPickupItem(canPickupItem: Boolean)
setChestplate
Link copied to clipboard
open override fun setChestplate(@NotNull() itemStack: @NotNull() ItemStack)
setCustomName
Link copied to clipboard
open fun setCustomName(@Nullable() customName: @Nullable() Component?)
setCustomNameVisible
Link copied to clipboard
open fun setCustomNameVisible(customNameVisible: Boolean)
setCustomSynchronizationCooldown
Link copied to clipboard
open fun setCustomSynchronizationCooldown(@Nullable() cooldown: @Nullable() Duration?)
setEquipment
Link copied to clipboard
open fun setEquipment(@NotNull() slot: @NotNull() EquipmentSlot, @NotNull() itemStack: @NotNull() ItemStack)
setFireDamagePeriod
Link copied to clipboard
open fun setFireDamagePeriod(fireDamagePeriod: Duration)
open fun setFireDamagePeriod(fireDamagePeriod: Long, @NotNull() temporalUnit: @NotNull() TemporalUnit)
setFireForDuration
Link copied to clipboard
open fun setFireForDuration(duration: Duration)
open fun setFireForDuration(duration: Int)
open fun setFireForDuration(duration: Int, temporalUnit: TemporalUnit)
setFlyingWithElytra
Link copied to clipboard
open fun setFlyingWithElytra(isFlying: Boolean)
setGlowing
Link copied to clipboard
open fun setGlowing(glowing: Boolean)
setGravity
Link copied to clipboard
open fun setGravity(gravityDragPerTick: Double, gravityAcceleration: Double)
setHealth
Link copied to clipboard
open fun setHealth(health: Float)
setHelmet
Link copied to clipboard
open override fun setHelmet(@NotNull() itemStack: @NotNull() ItemStack)
setInstance
Link copied to clipboard
open fun setInstance(@NotNull() instance: @NotNull() Instance): CompletableFuture<Void>
open fun setInstance(@NotNull() instance: @NotNull() Instance, @NotNull() spawnPosition: @NotNull() Point): CompletableFuture<Void>
open override fun setInstance(@NotNull() instance: @NotNull() Instance, @NotNull() spawnPosition: @NotNull() Pos): CompletableFuture<Void>
setInvisible
Link copied to clipboard
open fun setInvisible(invisible: Boolean)
setInvulnerable
Link copied to clipboard
open fun setInvulnerable(invulnerable: Boolean)
setItemInHand
Link copied to clipboard
open fun setItemInHand(@NotNull() hand: @NotNull() Player.Hand, @NotNull() stack: @NotNull() ItemStack)
setItemInMainHand
Link copied to clipboard
open override fun setItemInMainHand(@NotNull() itemStack: @NotNull() ItemStack)
setItemInOffHand
Link copied to clipboard
open override fun setItemInOffHand(@NotNull() itemStack: @NotNull() ItemStack)
setLeggings
Link copied to clipboard
open override fun setLeggings(@NotNull() itemStack: @NotNull() ItemStack)
setNoGravity
Link copied to clipboard
open fun setNoGravity(noGravity: Boolean)
setOnFire
Link copied to clipboard
open fun setOnFire(fire: Boolean)
setPose
Link copied to clipboard
open fun setPose(@NotNull() pose: @NotNull() Entity.Pose)
setRemovalAnimationDelay
Link copied to clipboard
open fun setRemovalAnimationDelay(removalAnimationDelay: Int)
setSilent
Link copied to clipboard
open fun setSilent(silent: Boolean)
setSneaking
Link copied to clipboard
open fun setSneaking(sneaking: Boolean)
setSprinting
Link copied to clipboard
open fun setSprinting(sprinting: Boolean)
setTag
Link copied to clipboard
open override fun <T : Any> setTag(@NotNull() tag: @NotNull() Tag<T>, @Nullable() value: @Nullable() T?)
setTarget
Link copied to clipboard
open fun setTarget(@Nullable() target: @Nullable() Entity?)
setTeam
Link copied to clipboard
open fun setTeam(team: Team)
setUuid
Link copied to clipboard
open fun setUuid(@NotNull() uuid: @NotNull() UUID)
setVelocity
Link copied to clipboard
open fun setVelocity(@NotNull() velocity: @NotNull() Vec)
setView
Link copied to clipboard
open fun setView(yaw: Float, pitch: Float)
spawn
Link copied to clipboard
open fun spawn()
swingMainHand
Link copied to clipboard
open fun swingMainHand()
swingOffHand
Link copied to clipboard
open fun swingOffHand()
switchEntityType
Link copied to clipboard
open fun switchEntityType(@NotNull() entityType: @NotNull() EntityType)
syncEquipment
Link copied to clipboard
open fun syncEquipment(@NotNull() slot: @NotNull() EquipmentSlot)
synchronizePosition
Link copied to clipboard
@ApiStatus.Internal()
open fun synchronizePosition(includeSelf: Boolean)
tagHandler
Link copied to clipboard
@NotNull()
open override fun tagHandler(): @NotNull() TagHandler
takeKnockback
Link copied to clipboard
open override fun takeKnockback(strength: Float, x: Double, z: Double)
teleport
Link copied to clipboard
@NotNull()
open fun teleport(@NotNull() position: @NotNull() Pos): @NotNull() CompletableFuture<Void>
@NotNull()
open fun teleport(@NotNull() position: @NotNull() Pos, chunks: LongArray): @NotNull() CompletableFuture<Void>
tick
Link copied to clipboard
open override fun tick(time: Long)
triggerStatus
Link copied to clipboard
open fun triggerStatus(status: Byte)
update
Link copied to clipboard
open override fun update(time: Long)
updateNewViewer
Link copied to clipboard
open override fun updateNewViewer(@NotNull() player: @NotNull() Player)
updateOldViewer
Link copied to clipboard
@ApiStatus.Internal()
open fun updateOldViewer(@NotNull() player: @NotNull() Player)
updatePose
Link copied to clipboard
open fun updatePose()
updateSnapshot
Link copied to clipboard
@NotNull()
open override fun updateSnapshot(@NotNull() updater: @NotNull() SnapshotUpdater): @NotNull() EntitySnapshot
updateVelocity
Link copied to clipboard
open fun updateVelocity(wasOnGround: Boolean, positionBeforeMove: Pos, newVelocity: Vec)
updateViewableRule
Link copied to clipboard
@ApiStatus.Experimental()
open fun updateViewableRule()
@ApiStatus.Experimental()
open fun updateViewableRule(@Nullable() predicate: @Nullable() Predicate<Player>?)
updateViewerRule
Link copied to clipboard
@ApiStatus.Experimental()
open fun updateViewerRule()
@ApiStatus.Experimental()
open fun updateViewerRule(@Nullable() predicate: @Nullable() Predicate<Entity>?)

Properties

canPickupItem
Link copied to clipboard
val canPickupItem: Boolean
currentChunk
Link copied to clipboard
val currentChunk: Chunk
entityMeta
Link copied to clipboard
val entityMeta: EntityMeta
entityType
Link copied to clipboard
val entityType: EntityType
expandedBoundingBox
Link copied to clipboard
val expandedBoundingBox: BoundingBox
gravityAcceleration
Link copied to clipboard
val gravityAcceleration: Double
gravityDragPerTick
Link copied to clipboard
val gravityDragPerTick: Double
gravityTickCount
Link copied to clipboard
val gravityTickCount: Int
hasPhysics
Link copied to clipboard
val hasPhysics: Boolean
instance
Link copied to clipboard
val instance: Instance
invulnerable
Link copied to clipboard
val invulnerable: Boolean
isDead
Link copied to clipboard
val isDead: Boolean
itemPickupCooldown
Link copied to clipboard
val itemPickupCooldown: Cooldown
lastDamageSource
Link copied to clipboard
val lastDamageSource: DamageType
lastSyncedPosition
Link copied to clipboard
val lastSyncedPosition: Pos
metadata
Link copied to clipboard
val metadata: Metadata
onGround
Link copied to clipboard
val onGround: Boolean
position
Link copied to clipboard
val position: Pos
previousPosition
Link copied to clipboard
val previousPosition: Pos
trackingUpdate
Link copied to clipboard
val trackingUpdate: EntityTracker.Update<Entity>
uuid
Link copied to clipboard
val uuid: UUID
vehicle
Link copied to clipboard
val vehicle: Entity
velocity
Link copied to clipboard
val velocity: Vec
viewEngine
Link copied to clipboard
val viewEngine: EntityView
viewers
Link copied to clipboard
val viewers: MutableSet<Player>