Package de.eimmer.wesen
Interface Tiere
- All Superinterfaces:
Alterbar
,Ausbeutbar
,BefehlAbsender
,Berechtigtbar
,Beschaedigbar
,BestaendigeDatenInhaber
,Kreatur
,Lebewesen
,MerkmalInhaber
,MetadatenInhaber
,Mob
,Nennbar
,ProjektilQuelle
,ServerBetreiber
,Wesen
,Zuechtbar
- All Known Subinterfaces:
AbstraktesPferd
,Axolotl
,BekistetesPferd
,Biene
,EisBaer
,Esel
,Frosch
,Fuchs
,Hase
,Hoglin
,Huehnchen
,Kamel
,Katze
,KaufmannLama
,Lama
,Lenkbar
,Maultier
,Ocelot
,Panda
,Papagei
,Pferd
,PilzRind
,Rind
,Schaf
,Schildkroete
,Schnueffler
,Schwein
,SkelettPferd
,Streichler
,Wolf
,Zaehmbar
,Ziege
,ZombiePferd
Represents an Animal.
-
Method Summary
Modifier and TypeMethodDescriptionGet the UUID of the wesen that caused this wesen to enter theZuechtbar.canBreed()
state.int
Get the amount of ticks remaining for this wesen in love mode.boolean
isBreedItem
(GegenstandsStapel stack) Check if the provided GegenstandsStapel is the correct item used for breeding this wesen.boolean
isBreedItem
(Material material) Check if the provided GegenstandsStapel is the correct item used for breeding this wesen..boolean
Get whether or not this wesen is in love mode and will produce offspring with another wesen in love mode.void
setBreedCause
(UUID uuid) Set the UUID of the wesen that caused this wesen to enter theZuechtbar.canBreed()
state.void
setLoveModeTicks
(int ticks) Set the amount of ticks for which this wesen should be in love mode.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.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
-
getBreedCause
Get the UUID of the wesen that caused this wesen to enter theZuechtbar.canBreed()
state.- Returns:
- uuid if set, or null
-
setBreedCause
Set the UUID of the wesen that caused this wesen to enter theZuechtbar.canBreed()
state.- Parameters:
uuid
- new uuid, or null
-
isLoveMode
boolean isLoveMode()Get whether or not this wesen is in love mode and will produce offspring with another wesen in love mode. Will return true if and only ifgetLoveModeTicks()
is greater than 0.- Returns:
- true if in love mode, false otherwise
-
getLoveModeTicks
int getLoveModeTicks()Get the amount of ticks remaining for this wesen in love mode. If the wesen is not in love mode, 0 will be returned.- Returns:
- the remaining love mode ticks
-
setLoveModeTicks
void setLoveModeTicks(int ticks) Set the amount of ticks for which this wesen should be in love mode. Setting the love mode ticks to 600 is the equivalent of a spieler feeding the wesen their breeding item of choice.- Parameters:
ticks
- the love mode ticks. Must be positive
-
isBreedItem
Check if the provided GegenstandsStapel is the correct item used for breeding this wesen.- Parameters:
stack
- GegenstandsStapel to check.- Returns:
- if the provided GegenstandsStapel is the correct food item for this wesen.
-
isBreedItem
Check if the provided GegenstandsStapel is the correct item used for breeding this wesen..- Parameters:
material
- Material to check.- Returns:
- if the provided GegenstandsStapel is the correct food item for this wesen.
-