blob: 08421efd39d192669f6d7c3408c3124e237b71fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
package darkknight.jewelrycraft.curses;
import java.util.ArrayList;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class Curse
{
protected int id, texturepack;
protected String name, description;
private static ArrayList<Curse> curses = new ArrayList<Curse>();
public static ArrayList<Curse> availableCurses = new ArrayList<Curse>();
/**
* @param id the ID of the curse
* @param name the name of the curse
* @param texturepack the ID of the pack the texture is located in
*/
protected Curse(int id, String name, int texturepack)
{
this.id = id;
this.name = name;
this.texturepack = texturepack;
curses.add(this);
availableCurses.add(this);
}
/**
* @return the name of the curse
*/
public String getName()
{
return name;
}
/**
* @return the description of the curse
*/
public String getDescription()
{
return description;
}
public Curse setDescription(String desc)
{
description = desc;
return this;
}
/**
* @return the curse ID
*/
public int getID()
{
return id;
}
/**
* @return the texture pack ID
*/
public int getTexturePack()
{
return texturepack;
}
/**
* @param world
* @param player
*/
public void action(World world, EntityPlayer player)
{}
public boolean itemToss()
{
return false;
}
/**
* @return
*/
public static ArrayList<Curse> getCurseList()
{
return curses;
}
}
|