blob: 71f8edb4698c953254f814bf7170ac483965aa3f (
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
|
package jp.plusplus.fbs.event.wish.entry;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
* Created by plusplus_F on 2016/03/31.
*/
public interface IWishEntry {
/**
* 0.0f-1.0fの範囲で優先度を返す<br>
* 数値が大きいほど判定が優先される
* @return
*/
public float priority();
/**
* プレイヤーの願いと一致するか判定する
* @param string 願い事
* @return 一致すればtrue
*/
public boolean matches(String string);
/**
* 願いごとを叶える処理
* @param player 願ったプレイヤー
* @param string 願い事
* @return プレイヤーに与えるItemStack (Nullable)
*/
public ItemStack get(EntityPlayer player, String string);
}
|