Package de.eimmer.wesen
Interface Pfeil
- All Superinterfaces:
AbstrakterPfeil
,BefehlAbsender
,Berechtigtbar
,BestaendigeDatenInhaber
,MetadatenInhaber
,Nennbar
,Projektil
,ServerBetreiber
,Wesen
- All Known Subinterfaces:
TippedPfeil
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.eimmer.wesen.AbstrakterPfeil
AbstrakterPfeil.PickupStatus
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addCustomEffect
(ZaubertrankEffekt effect, boolean overwrite) Adds a custom zaubertrank effect to this arrow.void
Removes all custom zaubertrank effects from this arrow.Deprecated.Returns the zaubertrank type about the base zaubertrankgetColor()
Gets the color of this arrow.Gets an immutable list containing all custom zaubertrank effects applied to this arrow.boolean
Checks for a specific custom zaubertrank effect type on this arrow.boolean
Checks for the presence of custom zaubertrank effects.boolean
Removes a custom zaubertrank effect from this arrow.void
setBasePotionData
(PotionData data) Deprecated.Upgraded / extended potions are now their ownZaubertrankTyp
usesetBasePotionType(de.eimmer.zaubertrank.ZaubertrankTyp)
instead.void
Sets the underlying zaubertrank typevoid
Sets the farbe of this arrow.Methods inherited from interface de.eimmer.wesen.AbstrakterPfeil
getAttachedBlock, getDamage, getKnockbackStrength, getPickupStatus, getPierceLevel, isCritical, isInBlock, isShotFromCrossbow, setCritical, setDamage, setKnockbackStrength, setPickupStatus, setPierceLevel, setShotFromCrossbow
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.bestaendigkeit.BestaendigeDatenInhaber
getPersistentDataContainer
Methods inherited from interface de.eimmer.metadaten.MetadatenInhaber
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface de.eimmer.Nennbar
getCustomName, setCustomName
Methods inherited from interface de.eimmer.wesen.Projektil
doesBounce, getShooter, setBounce, setShooter
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
-
Method Details
-
setBasePotionData
Deprecated.Upgraded / extended potions are now their ownZaubertrankTyp
usesetBasePotionType(de.eimmer.zaubertrank.ZaubertrankTyp)
instead.Sets the underlying zaubertrank data- Parameters:
data
- PotionData to set the base zaubertrank state to
-
getBasePotionData
Deprecated.Upgraded / extended potions are now their ownZaubertrankTyp
usegetBasePotionType()
instead.Returns the zaubertrank data about the base zaubertrank- Returns:
- a PotionData object
-
setBasePotionType
Sets the underlying zaubertrank type- Parameters:
type
- ZaubertrankTyp to set the base zaubertrank state to
-
getBasePotionType
Returns the zaubertrank type about the base zaubertrank- Returns:
- a ZaubertrankTyp object
-
getColor
Gets the color of this arrow.- Returns:
- arrow
Farbe
or null if not color is set
-
setColor
Sets the farbe of this arrow. Will be applied as a tint to its particles.- Parameters:
farbe
- arrow farbe, null to clear the farbe
-
hasCustomEffects
boolean hasCustomEffects()Checks for the presence of custom zaubertrank effects.- Returns:
- true if custom zaubertrank effects are applied
-
getCustomEffects
Gets an immutable list containing all custom zaubertrank effects applied to this arrow.Plugins should check that hasCustomEffects() returns true before calling this method.
- Returns:
- the immutable list of custom zaubertrank effects
-
addCustomEffect
Adds a custom zaubertrank effect to this arrow.- Parameters:
effect
- the zaubertrank effect to addoverwrite
- true if any existing effect of the same type should be overwritten- Returns:
- true if the effect was added as a result of this call
-
removeCustomEffect
Removes a custom zaubertrank effect from this arrow.- Parameters:
type
- the zaubertrank effect type to remove- Returns:
- true if the an effect was removed as a result of this call
- Throws:
IllegalArgumentException
- if this operation would leave the Pfeil in a state with no Custom Effects and ZaubertrankTyp.UNCRAFTABLE
-
hasCustomEffect
Checks for a specific custom zaubertrank effect type on this arrow.- Parameters:
type
- the zaubertrank effect type to check for- Returns:
- true if the zaubertrank has this effect
-
clearCustomEffects
void clearCustomEffects()Removes all custom zaubertrank effects from this arrow.- Throws:
IllegalArgumentException
- if this operation would leave the Pfeil in a state with no Custom Effects and ZaubertrankTyp.UNCRAFTABLE
-
ZaubertrankTyp
usegetBasePotionType()
instead.