EnchantmentFishingSpeed .java

net.minecraft.enchantment.EnchantmentFishingSpeed (class): members: getMaxEnchantability, getMinEnchantability, getMaxLevel. strings: "fishingSpeed".

net.minecraft.enchantmentclass37 linescommonextends Enchantment980 B

API Surface (3)

int getMinEnchantability(int enchantmentLevel)
int getMaxEnchantability(int enchantmentLevel)
int getMaxLevel()

String literals (1)

"fishingSpeed"

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

EnchantmentFishingSpeed.java37 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.enchantment;
2
3
import net.minecraft.util.ResourceLocation;
4
5
public class EnchantmentFishingSpeed extends Enchantment
6
{
7
    protected EnchantmentFishingSpeed(int enchID, ResourceLocation enchName, int enchWeight, EnumEnchantmentType enchType)
8
    {
9
        super(enchID, enchName, enchWeight, enchType);
10
        this.setName("fishingSpeed");
11
    }
12
13
    /**
14
     * Returns the minimal value of enchantability needed on the enchantment level passed.
15
     */
16
    public int getMinEnchantability(int enchantmentLevel)
17
    {
18
        return 15 + (enchantmentLevel - 1) * 9;
19
    }
20
21
    /**
22
     * Returns the maximum value of enchantability nedded on the enchantment level passed.
23
     */
24
    public int getMaxEnchantability(int enchantmentLevel)
25
    {
26
        return super.getMinEnchantability(enchantmentLevel) + 50;
27
    }
28
29
    /**
30
     * Returns the maximum level that the enchantment can have.
31
     */
32
    public int getMaxLevel()
33
    {
34
        return 3;
35
    }
36
}
37

Deobfuscated MCP 1.8.9 source of EnchantmentFishingSpeed from Marcelektro/MavenMCP-1.8.9 (net/minecraft/enchantment/EnchantmentFishingSpeed.java), stored verbatim.