Package de.eimmer.verzauberungen
Class Verzauberung
java.lang.Object
de.eimmer.verzauberungen.Verzauberung
- All Implemented Interfaces:
Geschluesselt
- Direct Known Subclasses:
VerzauberungsVerpackung
The various type of verzauberungen that may be added to armour or weapons
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Verzauberung
Provides extra damage when shooting arrows from bowsstatic final Verzauberung
Sets entities on fire when hit by arrows shot from a bowstatic final Verzauberung
Provides infinite arrows when shooting a bowstatic final Verzauberung
Provides a knockback when an wesen is hit by an arrow from a bowstatic final Verzauberung
Gegenstand cannot be removedstatic final Verzauberung
Strikes lightning when a mob is hit with a trident if conditions are stormystatic final Verzauberung
Increases damage against all targetsstatic final Verzauberung
Increases damage against arthropod targetsstatic final Verzauberung
Increases damage against undead targetsstatic final Verzauberung
Increases walking speed while in waterstatic final Verzauberung
Increases the rate at which you mine/digstatic final Verzauberung
Decreases the rate at which a tool looses durabilitystatic final Verzauberung
When attacking a target, has a chance to set them on firestatic final Verzauberung
Freezes any still water adjacent to ice / frost which spieler is walking onstatic final Verzauberung
Deals more damage to mobs that live in the oceanstatic final Verzauberung
All damage to other targets will knock them back when hitstatic final Verzauberung
Provides a chance of gaining extra beute when destroying blocksstatic final Verzauberung
Provides a chance of gaining extra beute when killing monstersstatic final Verzauberung
Causes a thrown trident to return to the spieler who threw itstatic final Verzauberung
Decreases odds of catching worthless junkstatic final Verzauberung
Increases rate of fish biting your hookstatic final Verzauberung
Allows mending the item using experience orbsstatic final Verzauberung
Shoot multiple arrows from crossbowsstatic final Verzauberung
Decreases the rate of air loss whilst underwaterstatic final Verzauberung
Crossbow projektile pierce entitiesstatic final Verzauberung
Provides protection against environmental damagestatic final Verzauberung
Provides protection against explosive damagestatic final Verzauberung
Provides protection against fall damagestatic final Verzauberung
Provides protection against fire damagestatic final Verzauberung
Provides protection against projectile damagestatic final Verzauberung
Charges crossbows quicklystatic final Verzauberung
When it is rainy, launches the spieler in the direction their trident is thrownstatic final Verzauberung
Allows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone)static final Verzauberung
Walk quicker on soul blocksstatic final Verzauberung
Increases damage against targets when using a sweep attackstatic final Verzauberung
Walk quicker while sneakingstatic final Verzauberung
Damages the attackerstatic final Verzauberung
Gegenstand disappears instead of droppingstatic final Verzauberung
Increases the speed at which a spieler may mine underwater -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Checks if this Verzauberung may be applied to the givenGegenstandsStapel
.abstract boolean
conflictsWith
(Verzauberung other) Check if this verzauberung conflicts with another verzauberung.static Verzauberung
Deprecated.static Verzauberung
Deprecated.verzauberungen are badly named, usegetByKey(NamensraumbezogenerSchluessel)
.abstract VerzauberungsZielvorgabe
Gets the type ofGegenstandsStapel
that may fit this Verzauberung.abstract int
Gets the maximum level that this Verzauberung may become.abstract String
getName()
Deprecated.verzauberungen are badly named, useGeschluesselt.getKey()
.abstract int
Gets the level that this Verzauberung should start atabstract boolean
isCursed()
Deprecated.cursed verzauberungen are no longer special.abstract boolean
Checks if this verzauberung is a treasure verzauberung.static Verzauberung[]
values()
Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.eimmer.Geschluesselt
getKey
-
Field Details
-
PROTECTION_ENVIRONMENTAL
Provides protection against environmental damage -
PROTECTION_FIRE
Provides protection against fire damage -
PROTECTION_FALL
Provides protection against fall damage -
PROTECTION_EXPLOSIONS
Provides protection against explosive damage -
PROTECTION_PROJECTILE
Provides protection against projectile damage -
OXYGEN
Decreases the rate of air loss whilst underwater -
WATER_WORKER
Increases the speed at which a spieler may mine underwater -
THORNS
Damages the attacker -
DEPTH_STRIDER
Increases walking speed while in water -
FROST_WALKER
Freezes any still water adjacent to ice / frost which spieler is walking on -
BINDING_CURSE
Gegenstand cannot be removed -
DAMAGE_ALL
Increases damage against all targets -
DAMAGE_UNDEAD
Increases damage against undead targets -
DAMAGE_ARTHROPODS
Increases damage against arthropod targets -
KNOCKBACK
All damage to other targets will knock them back when hit -
FIRE_ASPECT
When attacking a target, has a chance to set them on fire -
LOOT_BONUS_MOBS
Provides a chance of gaining extra beute when killing monsters -
SWEEPING_EDGE
Increases damage against targets when using a sweep attack -
DIG_SPEED
Increases the rate at which you mine/dig -
SILK_TOUCH
Allows blocks to drop themselves instead of fragments (for example, stone instead of cobblestone) -
DURABILITY
Decreases the rate at which a tool looses durability -
LOOT_BONUS_BLOCKS
Provides a chance of gaining extra beute when destroying blocks -
ARROW_DAMAGE
Provides extra damage when shooting arrows from bows -
ARROW_KNOCKBACK
Provides a knockback when an wesen is hit by an arrow from a bow -
ARROW_FIRE
Sets entities on fire when hit by arrows shot from a bow -
ARROW_INFINITE
Provides infinite arrows when shooting a bow -
LUCK
Decreases odds of catching worthless junk -
LURE
Increases rate of fish biting your hook -
LOYALTY
Causes a thrown trident to return to the spieler who threw it -
IMPALING
Deals more damage to mobs that live in the ocean -
RIPTIDE
When it is rainy, launches the spieler in the direction their trident is thrown -
CHANNELING
Strikes lightning when a mob is hit with a trident if conditions are stormy -
MULTISHOT
Shoot multiple arrows from crossbows -
QUICK_CHARGE
Charges crossbows quickly -
PIERCING
Crossbow projektile pierce entities -
MENDING
Allows mending the item using experience orbs -
VANISHING_CURSE
Gegenstand disappears instead of dropping -
SOUL_SPEED
Walk quicker on soul blocks -
SWIFT_SNEAK
Walk quicker while sneaking
-
-
Constructor Details
-
Verzauberung
public Verzauberung()
-
-
Method Details
-
getName
Deprecated.verzauberungen are badly named, useGeschluesselt.getKey()
.Gets the unique name of this verzauberung- Returns:
- Unique name
-
getMaxLevel
public abstract int getMaxLevel()Gets the maximum level that this Verzauberung may become.- Returns:
- Maximum level of the Verzauberung
-
getStartLevel
public abstract int getStartLevel()Gets the level that this Verzauberung should start at- Returns:
- Starting level of the Verzauberung
-
getItemTarget
Gets the type ofGegenstandsStapel
that may fit this Verzauberung.- Returns:
- Target type of the Verzauberung
-
isTreasure
public abstract boolean isTreasure()Checks if this verzauberung is a treasure verzauberung.
Treasure verzauberungen can only be received via looting, trading, or fishing.- Returns:
- true if the verzauberung is a treasure verzauberung
-
isCursed
Deprecated.cursed verzauberungen are no longer special. Will return true only forBINDING_CURSE
andVANISHING_CURSE
.Checks if this verzauberung is a cursed verzauberung
Cursed verzauberungen are found the same way treasure verzauberungen are- Returns:
- true if the verzauberung is cursed
-
conflictsWith
Check if this verzauberung conflicts with another verzauberung.- Parameters:
other
- The verzauberung to check against- Returns:
- True if there is a conflict.
-
canEnchantItem
Checks if this Verzauberung may be applied to the givenGegenstandsStapel
.This does not check if it conflicts with any verzauberungen already applied to the item.
- Parameters:
item
- Gegenstand to test- Returns:
- True if the verzauberung may be applied, otherwise False
-
getByKey
@Contract("null -> null") @Nullable @Deprecated public static Verzauberung getByKey(@Nullable NamensraumbezogenerSchluessel key) Deprecated.only for backwards compatibility, useRegistrierung.get(NamensraumbezogenerSchluessel)
insteadGets the Verzauberung at the specified key- Parameters:
key
- key to fetch- Returns:
- Resulting Verzauberung, or null if not found
-
getByName
@Deprecated @Contract("null -> null") @Nullable public static Verzauberung getByName(@Nullable String name) Deprecated.verzauberungen are badly named, usegetByKey(NamensraumbezogenerSchluessel)
.Gets the Verzauberung at the specified name- Parameters:
name
- Name to fetch- Returns:
- Resulting Verzauberung, or null if not found
-
values
Deprecated.Gets an array of all the registeredVerzauberung
s- Returns:
- Array of verzauberungen
-
Registrierung.get(NamensraumbezogenerSchluessel)
instead