public interface PiglinAbstract extends Monster, Ageable
Entity.Spigot
Modifier and Type | Method and Description |
---|---|
int |
getConversionTime()
Gets the amount of ticks until this entity will be converted to a
Zombified Piglin.
|
boolean |
isBaby()
Deprecated.
|
boolean |
isConverting()
Get if this entity is in the process of converting to a Zombified Piglin.
|
boolean |
isImmuneToZombification()
Gets whether the piglin is immune to zombification.
|
void |
setBaby(boolean flag)
Deprecated.
see
Ageable.setBaby() and Ageable.setAdult() |
void |
setConversionTime(int time)
Sets the amount of ticks until this entity will be converted to a
Zombified Piglin.
|
void |
setImmuneToZombification(boolean flag)
Sets whether the piglin is immune to zombification.
|
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
addPotionEffect, addPotionEffect, addPotionEffects, attack, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand
getAttribute
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
getPersistentDataContainer
launchProjectile, launchProjectile
getLootTable, getSeed, setLootTable, setSeed
boolean isImmuneToZombification()
void setImmuneToZombification(boolean flag)
flag
- Whether the piglin is immune to zombificationint getConversionTime()
IllegalStateException
- if isConverting()
is false.void setConversionTime(int time)
time
- new conversion timeboolean isConverting()
@Deprecated boolean isBaby()
Ageable.isAdult()
@Deprecated void setBaby(boolean flag)
Ageable.setBaby()
and Ageable.setAdult()
flag
- Whether the piglin is a babyCopyright © 2021. All rights reserved.