Package de.eimmer.wesen
Interface Hoglin
- All Superinterfaces:
Alterbar
,Ausbeutbar
,BefehlAbsender
,Berechtigtbar
,Beschaedigbar
,BestaendigeDatenInhaber
,Feind
,Kreatur
,Lebewesen
,MerkmalInhaber
,MetadatenInhaber
,Mob
,Nennbar
,ProjektilQuelle
,ServerBetreiber
,Tiere
,Wesen
,Zuechtbar
Represents a Hoglin.
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the amount of ticks until this wesen will be converted to a Zoglin.boolean
Get whether the hoglin is able to be hunted by piglins.boolean
Get if this wesen is in the process of converting to a Zoglin.boolean
Gets whether the hoglin is immune to zombification.void
setConversionTime
(int time) Sets the amount of ticks until this wesen will be converted to a Zoglin.void
setImmuneToZombification
(boolean flag) Sets whether the hoglin is immune to zombification.void
setIsAbleToBeHunted
(boolean flag) Sets whether the hoglin is able to be hunted by piglins.Methods inherited from interface de.eimmer.wesen.Alterbar
getAge, isAdult, setAdult, setAge, setBaby
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.Tiere
getBreedCause, getLoveModeTicks, isBreedItem, isBreedItem, isLoveMode, setBreedCause, setLoveModeTicks
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
Methods inherited from interface de.eimmer.wesen.Zuechtbar
canBreed, getAgeLock, setAgeLock, setBreed
-
Method Details
-
isImmuneToZombification
boolean isImmuneToZombification()Gets whether the hoglin is immune to zombification.- Returns:
- Whether the hoglin is immune to zombification
-
setImmuneToZombification
void setImmuneToZombification(boolean flag) Sets whether the hoglin is immune to zombification.- Parameters:
flag
- Whether the hoglin is immune to zombification
-
isAbleToBeHunted
boolean isAbleToBeHunted()Get whether the hoglin is able to be hunted by piglins.- Returns:
- Whether the hoglin is able to be hunted by piglins
-
setIsAbleToBeHunted
void setIsAbleToBeHunted(boolean flag) Sets whether the hoglin is able to be hunted by piglins.- Parameters:
flag
- Whether the hoglin is able to be hunted by piglins.
-
getConversionTime
int getConversionTime()Gets the amount of ticks until this wesen will be converted to a Zoglin. When this reaches 300, 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 Zoglin. 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
-
isConverting
boolean isConverting()Get if this wesen is in the process of converting to a Zoglin.- Returns:
- conversion status
-