界面绘制
按钮绘制
按钮组件是我们的重头戏,你可以自定义点击按钮执行的内容,按钮的两种贴图、按钮的位置。
https://www.vexview.top/docs/index.html
package com.project.minecraft.vexview;
import com.project.minecraft.dao.SQLManager;
import lk.vexview.gui.VexGui;
import lk.vexview.gui.components.*;
import lk.vexview.gui.components.expand.VexGifImage;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MyGui_tujian {
public static VexGui tujianGui() {
List<VexComponents> list = new ArrayList<>();
list.add(new VexButton(1, "", "[local]植物贴图1.png", "[local]植物贴图2.png", 9, 70, 110, 150,new VexHoverText(Arrays.asList("§1植物图鉴"))));
list.add(new VexButton(2, "", "[local]生物贴图1.png", "[local]生物贴图2.png", -1, 70, 110, 150,new VexHoverText(Arrays.asList("§2生物图鉴"))));
list.add(new VexButton(3, "", "[local]装备贴图1.png", "[local]装备贴图2.png", 241, 70, 110, 150,new VexHoverText(Arrays.asList("§3装备图鉴"))));
list.add(new VexButton(9, "", "[local]返回1.jpg", "[local]返回2.jpg", 5, 7, 15, 15, new VexHoverText(Arrays.asList("§1返回"))));
list.add(new VexButton(4, "", "[local]成就1.jpg", "[local]成就2.jpg", 310, 40, 20, 20,new VexHoverText(Arrays.asList("§6悬赏任务"))));
list.add(new VexButton(6, "", "[local]退出1.jpg", "[local]退出2.jpg", 338, 7, 15, 15,new VexHoverText(Arrays.asList("§1退出"))));
list.add(new VexText(-1, 30, Arrays.asList("§d图鉴列表")));
list.add(new VexImage("[local]图鉴贴图1.png", 110, 20, 30, 30,new VexHoverText(Arrays.asList("§4MineCraft"))));
list.add(new VexImage("[local]图鉴贴图2.png", 220, 20, 30, 30,new VexHoverText(Arrays.asList("§4PluginTest"))));
return new VexGui("[local]gui.png", -1, -1, 360, 240, list);
}
public static VexGui zhiwuGui() {
List<VexComponents> list = new ArrayList<>();
VexScrollingList vsl = new VexScrollingList(-1,-1,240,160,1200);
vsl.addComponent(new VexButton(5, "", "[local]返回1.jpg", "[local]返回2.jpg", 14, 8, 15, 15, new VexHoverText(Arrays.asList("§1返回"))));
vsl.addComponent(new VexButton(6, "", "[local]退出1.jpg", "[local]退出2.jpg", 214, 8, 15, 15,new VexHoverText(Arrays.asList("§1退出"))));
vsl.addComponent(new VexText(100, 20, Arrays.asList("§d植物图鉴")));
vsl.addComponent(new VexText(20, 40, Arrays.asList("§d方块")));
vsl.addComponent(new VexImage("[local]竹子.png",8,60,40,40, new VexHoverText(Arrays.asList("§c竹子(方块)"))));
vsl.addComponent(new VexImage("[local]甜菜.png",54,60,40,40, new VexHoverText(Arrays.asList("§c甜菜"))));
vsl.addComponent(new VexImage("[local]仙人掌.png",100,60,40,40, new VexHoverText(Arrays.asList("§c仙人掌"))));
vsl.addComponent(new VexImage("[local]胡萝卜.png",146,60,40,40, new VexHoverText(Arrays.asList("§c胡萝卜(方块)"))));
vsl.addComponent(new VexImage("[local]可可果.png",192,60,40,40, new VexHoverText(Arrays.asList("§c可可果"))));
vsl.addComponent(new VexImage("[local]枯萎的灌木.png",8,105,40,40, new VexHoverText(Arrays.asList("§c枯萎的灌木"))));
vsl.addComponent(new VexImage("[local]蕨.png",54,105,40,40, new VexHoverText(Arrays.asList("§c蕨"))));
vsl.addComponent(new VexImage("[local]花.png",100,105,40,40, new VexHoverText(Arrays.asList("§c花"))));
vsl.addComponent(new VexImage("[local]草.png",146,105,40,40, new VexHoverText(Arrays.asList("§c草"))));
vsl.addComponent(new VexImage("[local]草方块.png",192,105,40,40, new VexHoverText(Arrays.asList("§c草方块"))));
vsl.addComponent(new VexImage("[local]树叶.png",8,150,40,40, new VexHoverText(Arrays.asList("§c树叶"))));
vsl.addComponent(new VexImage("[local]睡莲.png",54,150,40,40, new VexHoverText(Arrays.asList("§c睡莲"))));
vsl.addComponent(new VexImage("[local]原木.png",100,150,40,40, new VexHoverText(Arrays.asList("§c原木"))));
vsl.addComponent(new VexImage("[local]西瓜.png",146,150,40,40, new VexHoverText(Arrays.asList("§c西瓜(方块)"))));
vsl.addComponent(new VexImage("[local]西瓜茎.png",192,150,40,40, new VexHoverText(Arrays.asList("§c西瓜茎"))));
vsl.addComponent(new VexImage("[local]马铃薯.png",8,195,40,40, new VexHoverText(Arrays.asList("§c马铃薯(方块)"))));
vsl.addComponent(new VexImage("[local]南瓜.png",54,195,40,40, new VexHoverText(Arrays.asList("§c南瓜"))));
vsl.addComponent(new VexImage("[local]南瓜茎.png",100,195,40,40, new VexHoverText(Arrays.asList("§c南瓜茎"))));
vsl.addComponent(new VexImage("[local]树苗.png",146,195,40,40, new VexHoverText(Arrays.asList("§c树苗"))));
vsl.addComponent(new VexImage("[local]海草.png",192,195,40,40, new VexHoverText(Arrays.asList("§c海草"))));
vsl.addComponent(new VexImage("[local]甘蔗.png",8,240,40,40, new VexHoverText(Arrays.asList("§c甘蔗(方块)"))));
vsl.addComponent(new VexImage("[local]甜浆果丛.png",54,240,40,40, new VexHoverText(Arrays.asList("§c甜浆果丛"))));
vsl.addComponent(new VexImage("[local]藤蔓.png",100,240,40,40, new VexHoverText(Arrays.asList("§c藤蔓"))));
vsl.addComponent(new VexImage("[local]小麦.png",146,240,40,40, new VexHoverText(Arrays.asList("§c小麦(方块)"))));
vsl.addComponent(new VexText(20, 300, Arrays.asList("§d物品")));
vsl.addComponent(new VexImage("[local]苹果.png",8,320,40,40, new VexHoverText(Arrays.asList("§c苹果"))));
vsl.addComponent(new VexImage("[local]竹子1.png",54,320,40,40, new VexHoverText(Arrays.asList("§c竹子(物品)"))));
vsl.addComponent(new VexImage("[local]甜菜根.png",100,320,40,40, new VexHoverText(Arrays.asList("§c甜菜根"))));
vsl.addComponent(new VexImage("[local]甜菜种子.png",146,320,40,40, new VexHoverText(Arrays.asList("§c甜菜种子"))));
vsl.addComponent(new VexImage("[local]胡萝卜1.png",192,320,40,40, new VexHoverText(Arrays.asList("§c胡萝卜(物品)"))));
vsl.addComponent(new VexImage("[local]可可豆.png",8,365,40,40, new VexHoverText(Arrays.asList("§c可可豆"))));
vsl.addComponent(new VexImage("[local]西瓜1.png",54,365,40,40, new VexHoverText(Arrays.asList("§c西瓜(物品)"))));
vsl.addComponent(new VexImage("[local]西瓜种子.png",100,365,40,40, new VexHoverText(Arrays.asList("§c西瓜种子"))));
vsl.addComponent(new VexImage("[local]毒马铃薯.png",146,365,40,40, new VexHoverText(Arrays.asList("§c毒马铃薯"))));
vsl.addComponent(new VexImage("[local]马铃薯1.png",192,365,40,40, new VexHoverText(Arrays.asList("§c马铃薯(物品)"))));
vsl.addComponent(new VexImage("[local]南瓜种子.png",8,410,40,40, new VexHoverText(Arrays.asList("§c南瓜种子"))));
vsl.addComponent(new VexImage("[local]甘蔗1.png",54,410,40,40, new VexHoverText(Arrays.asList("§c甘蔗(物品)"))));
vsl.addComponent(new VexImage("[local]甜浆果.png",100,410,40,40, new VexHoverText(Arrays.asList("§c甜浆果"))));
vsl.addComponent(new VexImage("[local]小麦种子.png",146,410,40,40, new VexHoverText(Arrays.asList("§c小麦种子"))));
vsl.addComponent(new VexImage("[local]小麦1.png",192,410,40,40, new VexHoverText(Arrays.asList("§c小麦(物品)"))));
vsl.addComponent(new VexText(20, 470, Arrays.asList("§d结构")));
vsl.addComponent(new VexImage("[local]树木.png",8,490,40,40, new VexHoverText(Arrays.asList("§c树木"))));
vsl.addComponent(new VexText(20, 550, Arrays.asList("§d假的植物")));
vsl.addComponent(new VexText(20, 560, Arrays.asList("§5下列事物行为类似Minecraft中的植物,")));
vsl.addComponent(new VexText(20, 570, Arrays.asList("§5但是在实际生活中或是游戏设计上是植物以外的生物:")));
vsl.addComponent(new VexText(20, 590, Arrays.asList("§d藻类")));
vsl.addComponent(new VexImage("[local]海带.png",8,610,40,40, new VexHoverText(Arrays.asList("§c海带"))));
vsl.addComponent(new VexText(20, 670, Arrays.asList("§d动物")));
vsl.addComponent(new VexImage("[local]珊瑚礁(结构).png",8,690,40,40, new VexHoverText(Arrays.asList("§c珊瑚礁(结构)"))));
vsl.addComponent(new VexImage("[local]珊瑚.png",54,690,40,40, new VexHoverText(Arrays.asList("§c珊瑚"))));
vsl.addComponent(new VexImage("[local]珊瑚块.png",100,690,40,40, new VexHoverText(Arrays.asList("§c珊瑚块"))));
vsl.addComponent(new VexImage("[local]珊瑚扇.png",146,690,40,40, new VexHoverText(Arrays.asList("§c珊瑚扇"))));
vsl.addComponent(new VexImage("[local]海泡菜.png",192,690,40,40, new VexHoverText(Arrays.asList("§c海泡菜"))));
vsl.addComponent(new VexImage("[local]海绵(及湿的).png",8,735,40,40, new VexHoverText(Arrays.asList("§c海绵(及湿的)"))));
vsl.addComponent(new VexText(20, 795, Arrays.asList("§d菌类")));
vsl.addComponent(new VexImage("[local]巨型蘑菇(结构).png",8,815,40,40, new VexHoverText(Arrays.asList("§c巨型蘑菇(结构)"))));
vsl.addComponent(new VexImage("[local]蘑菇.png",54,815,40,40, new VexHoverText(Arrays.asList("§c珊瑚"))));
vsl.addComponent(new VexImage("[local]蘑菇方块.png",100,815,40,40, new VexHoverText(Arrays.asList("§c珊瑚块"))));
vsl.addComponent(new VexImage("[local]菌丝.png",146,815,40,40, new VexHoverText(Arrays.asList("§c珊瑚扇"))));
vsl.addComponent(new VexText(20, 875, Arrays.asList("§d假想")));
vsl.addComponent(new VexText(20, 885, Arrays.asList("§5这些“植物”在现实中并不存在。")));
vsl.addComponent(new VexText(20, 905, Arrays.asList("§d末地“植物”")));
vsl.addComponent(new VexImage("[local]紫颂花.png",8,925,40,40, new VexHoverText(Arrays.asList("§c紫颂花 "))));
vsl.addComponent(new VexImage("[local]紫颂果.png",54,925,40,40, new VexHoverText(Arrays.asList("§c紫颂果"))));
vsl.addComponent(new VexImage("[local]紫颂植物.png",100,925,40,40, new VexHoverText(Arrays.asList("§c紫颂植物"))));
vsl.addComponent(new VexImage("[local]紫颂树(结构).png",146,925,40,40, new VexHoverText(Arrays.asList("§c紫颂树(结构)"))));
vsl.addComponent(new VexText(20, 985, Arrays.asList("§d下界“植物”")));
vsl.addComponent(new VexText(20, 995, Arrays.asList("§5注:虽然以下某些生物体被描述为菌类,")));
vsl.addComponent(new VexText(20, 1005, Arrays.asList("§5但是它们与现实中的菌类并不相符。")));
vsl.addComponent(new VexImage("[local]绯红菌.png",8,1025,40,40, new VexHoverText(Arrays.asList("§c绯红菌"))));
vsl.addComponent(new VexImage("[local]绯红菌索.png",54,1025,40,40, new VexHoverText(Arrays.asList("§c绯红菌索"))));
vsl.addComponent(new VexImage("[local]绯红巨型菌.png",100,1025,40,40, new VexHoverText(Arrays.asList("§c绯红巨型菌"))));
vsl.addComponent(new VexImage("[local]诡异巨型菌.png",146,1025,40,40, new VexHoverText(Arrays.asList("§c诡异巨型菌"))));
vsl.addComponent(new VexImage("[local]下界苗.png",192,1025,40,40, new VexHoverText(Arrays.asList("§c下界苗"))));
vsl.addComponent(new VexImage("[local]下界疣.png",8,1070,40,40, new VexHoverText(Arrays.asList("§c下界疣"))));
vsl.addComponent(new VexImage("[local]菌岩.png",54,1070,40,40, new VexHoverText(Arrays.asList("§c菌岩"))));
vsl.addComponent(new VexImage("[local]菌光体.png",100,1070,40,40, new VexHoverText(Arrays.asList("§c菌光体"))));
vsl.addComponent(new VexImage("[local]缠怨藤.png",146,1070,40,40, new VexHoverText(Arrays.asList("§c缠怨藤"))));
vsl.addComponent(new VexImage("[local]诡异菌.png",192,1070,40,40, new VexHoverText(Arrays.asList("§c诡异菌"))));
vsl.addComponent(new VexImage("[local]诡异菌索.png",8,1115,40,40, new VexHoverText(Arrays.asList("§c诡异菌索"))));
vsl.addComponent(new VexImage("[local]垂泪藤.png",54,1115,40,40, new VexHoverText(Arrays.asList("§c垂泪藤"))));
list.add(vsl);
return new VexGui("[local]背景1.png", -1, -1, 240, 160, list);
}
public static VexGui shengwuGui() {
List<VexComponents> list = new ArrayList<>();
VexScrollingList vsl = new VexScrollingList(-1,-1,240,200,1600);
vsl.addComponent(new VexButton(5, "", "[local]返回1.jpg", "[local]返回2.jpg", 14, 8, 15, 15, new VexHoverText(Arrays.asList("§1返回"))));
vsl.addComponent(new VexButton(6, "", "[local]退出1.jpg", "[local]退出2.jpg", 214, 8, 15, 15,new VexHoverText(Arrays.asList("§1退出"))));
vsl.addComponent(new VexText(100, 20, Arrays.asList("§d生物图鉴")));
vsl.addComponent(new VexText(20, 40, Arrays.asList("§d被动型生物")));
vsl.addComponent(new VexText(20, 50, Arrays.asList("§5被动型生物是无害而和平的生物,")));
vsl.addComponent(new VexText(20, 60, Arrays.asList("§5即使被玩家攻击也不会进行反击,")));
vsl.addComponent(new VexText(20, 70, Arrays.asList("§5但被攻击后通常会逃跑。")));
vsl.addComponent(new VexText(20, 90, Arrays.asList("§d和平型")));
vsl.addComponent(new VexImage("[local]蝙蝠.png",8,110,40,40, new VexHoverText(Arrays.asList("§c蝙蝠"))));
vsl.addComponent(new VexImage("[local]猫.png",54,110,40,40, new VexHoverText(Arrays.asList("§c猫"))));
vsl.addComponent(new VexImage("[local]鸡.png",100,110,40,40, new VexHoverText(Arrays.asList("§c鸡"))));
vsl.addComponent(new VexImage("[local]鳕鱼.png",146,110,40,40, new VexHoverText(Arrays.asList("§c鳕鱼"))));
vsl.addComponent(new VexImage("[local]牛.png",192,110,40,40, new VexHoverText(Arrays.asList("§c牛"))));
vsl.addComponent(new VexImage("[local]驴.png",8,155,40,40, new VexHoverText(Arrays.asList("§c驴"))));
vsl.addComponent(new VexImage("[local]狐狸.png",54,155,40,40, new VexHoverText(Arrays.asList("§c狐狸"))));
vsl.addComponent(new VexImage("[local]马.png",100,155,40,40, new VexHoverText(Arrays.asList("§c马"))));
vsl.addComponent(new VexImage("[local]哞菇.png",146,155,40,40, new VexHoverText(Arrays.asList("§c哞菇"))));
vsl.addComponent(new VexImage("[local]骡.png",192,155,40,40, new VexHoverText(Arrays.asList("§c骡"))));
vsl.addComponent(new VexImage("[local]豹猫.png",8,200,40,40, new VexHoverText(Arrays.asList("§c豹猫"))));
vsl.addComponent(new VexImage("[local]鹦鹉.png",54,200,40,40, new VexHoverText(Arrays.asList("§c鹦鹉"))));
vsl.addComponent(new VexImage("[local]猪.png",100,200,40,40, new VexHoverText(Arrays.asList("§c猪"))));
vsl.addComponent(new VexImage("[local]兔子.png",146,200,40,40, new VexHoverText(Arrays.asList("§c兔子"))));
vsl.addComponent(new VexImage("[local]鲑鱼.png",192,200,40,40, new VexHoverText(Arrays.asList("§c鲑鱼"))));
vsl.addComponent(new VexImage("[local]雪傀儡.png",8,245,40,40, new VexHoverText(Arrays.asList("§c雪傀儡"))));
vsl.addComponent(new VexImage("[local]羊.png",54,245,40,40, new VexHoverText(Arrays.asList("§c羊"))));
vsl.addComponent(new VexImage("[local]骷髅马.png",100,245,40,40, new VexHoverText(Arrays.asList("§c骷髅马"))));
vsl.addComponent(new VexImage("[local]鱿鱼.png",146,245,40,40, new VexHoverText(Arrays.asList("§c鱿鱼"))));
vsl.addComponent(new VexImage("[local]炽足兽.png",192,245,40,40, new VexHoverText(Arrays.asList("§c炽足兽"))));
vsl.addComponent(new VexImage("[local]热带鱼.png",8,290,40,40, new VexHoverText(Arrays.asList("§c热带鱼"))));
vsl.addComponent(new VexImage("[local]海龟.png",54,290,40,40, new VexHoverText(Arrays.asList("§c海龟"))));
vsl.addComponent(new VexImage("[local]村民.png",100,290,40,40, new VexHoverText(Arrays.asList("§c村民"))));
vsl.addComponent(new VexImage("[local]流浪商人.png",146,290,40,40, new VexHoverText(Arrays.asList("§c流浪商人"))));
vsl.addComponent(new VexText(20, 350, Arrays.asList("§d防御型")));
vsl.addComponent(new VexText(20, 360, Arrays.asList("§5防御型生物可以对其他生物直接造成伤害,")));
vsl.addComponent(new VexText(20, 370, Arrays.asList("§5但它们并不具有主动攻击性。")));
vsl.addComponent(new VexImage("[local]河豚.png",8,390,40,40, new VexHoverText(Arrays.asList("§c河豚"))));
vsl.addComponent(new VexText(20, 450, Arrays.asList("§d中立型生物")));
vsl.addComponent(new VexText(20, 460, Arrays.asList("§5中立型生物只在被激怒后攻击玩家。")));
vsl.addComponent(new VexImage("[local]蜜蜂.png",8,480,40,40, new VexHoverText(Arrays.asList("§c蜜蜂"))));
vsl.addComponent(new VexImage("[local]洞穴蜘蛛.png",54,480,40,40, new VexHoverText(Arrays.asList("§c洞穴蜘蛛"))));
vsl.addComponent(new VexImage("[local]海豚.png",100,480,40,40, new VexHoverText(Arrays.asList("§c海豚"))));
vsl.addComponent(new VexImage("[local]末影人.png",146,480,40,40, new VexHoverText(Arrays.asList("§c末影人"))));
vsl.addComponent(new VexImage("[local]铁傀儡.png",192,480,40,40, new VexHoverText(Arrays.asList("§c铁傀儡"))));
vsl.addComponent(new VexImage("[local]羊驼.png",8,525,40,40, new VexHoverText(Arrays.asList("§c羊驼"))));
vsl.addComponent(new VexImage("[local]熊猫.png",54,525,40,40, new VexHoverText(Arrays.asList("§c熊猫"))));
vsl.addComponent(new VexImage("[local]猪灵.png",100,525,40,40, new VexHoverText(Arrays.asList("§c猪灵"))));
vsl.addComponent(new VexImage("[local]北极熊.png",146,525,40,40, new VexHoverText(Arrays.asList("§c北极熊"))));
vsl.addComponent(new VexImage("[local]蜘蛛.png",192,525,40,40, new VexHoverText(Arrays.asList("§c蜘蛛"))));
vsl.addComponent(new VexImage("[local]狼.png",8,570,40,40, new VexHoverText(Arrays.asList("§c狼"))));
vsl.addComponent(new VexImage("[local]僵尸猪灵.png",54,570,40,40, new VexHoverText(Arrays.asList("§c僵尸猪灵"))));
vsl.addComponent(new VexText(20, 630, Arrays.asList("§d攻击型生物")));
vsl.addComponent(new VexText(20, 640, Arrays.asList("§5攻击型生物是危险而具有侵略性的生物,")));
vsl.addComponent(new VexText(20, 650, Arrays.asList("§5它们总会尝试攻击所看到的玩家。")));
vsl.addComponent(new VexImage("[local]烈焰人.png",8,670,40,40, new VexHoverText(Arrays.asList("§c烈焰人"))));
vsl.addComponent(new VexImage("[local]鸡骑士.png",54,670,40,40, new VexHoverText(Arrays.asList("§c鸡骑士"))));
vsl.addComponent(new VexImage("[local]苦力怕.png",100,670,40,40, new VexHoverText(Arrays.asList("§c苦力怕"))));
vsl.addComponent(new VexImage("[local]溺尸.png",146,670,40,40, new VexHoverText(Arrays.asList("§c溺尸"))));
vsl.addComponent(new VexImage("[local]远古守卫者.png",192,670,40,40, new VexHoverText(Arrays.asList("§c远古守卫者"))));
vsl.addComponent(new VexImage("[local]末影螨.png",8,715,40,40, new VexHoverText(Arrays.asList("§c末影螨"))));
vsl.addComponent(new VexImage("[local]唤魔者.png",54,715,40,40, new VexHoverText(Arrays.asList("§c唤魔者"))));
vsl.addComponent(new VexImage("[local]恶魂.png",100,715,40,40, new VexHoverText(Arrays.asList("§c恶魂"))));
vsl.addComponent(new VexImage("[local]守卫者.png",146,715,40,40, new VexHoverText(Arrays.asList("§c守卫者"))));
vsl.addComponent(new VexImage("[local]疣猪兽.png",192,715,40,40, new VexHoverText(Arrays.asList("§c疣猪兽"))));
vsl.addComponent(new VexImage("[local]尸壳.png",8,760,40,40, new VexHoverText(Arrays.asList("§c尸壳"))));
vsl.addComponent(new VexImage("[local]岩浆怪.png",54,760,40,40, new VexHoverText(Arrays.asList("§c岩浆怪"))));
vsl.addComponent(new VexImage("[local]幻翼.png",100,760,40,40, new VexHoverText(Arrays.asList("§c幻翼"))));
vsl.addComponent(new VexImage("[local]掠夺者.png",146,760,40,40, new VexHoverText(Arrays.asList("§c掠夺者"))));
vsl.addComponent(new VexImage("[local]劫掠兽.png",192,760,40,40, new VexHoverText(Arrays.asList("§c劫掠兽"))));
vsl.addComponent(new VexImage("[local]潜影贝.png",8,805,40,40, new VexHoverText(Arrays.asList("§c潜影贝"))));
vsl.addComponent(new VexImage("[local]蠹虫.png",54,805,40,40, new VexHoverText(Arrays.asList("§c蠹虫"))));
vsl.addComponent(new VexImage("[local]骷髅.png",100,805,40,40, new VexHoverText(Arrays.asList("§c骷髅"))));
vsl.addComponent(new VexImage("[local]骷髅骑手.png",146,805,40,40, new VexHoverText(Arrays.asList("§c骷髅骑手"))));
vsl.addComponent(new VexImage("[local]史莱姆.png",192,805,40,40, new VexHoverText(Arrays.asList("§c史莱姆"))));
vsl.addComponent(new VexImage("[local]蜘蛛骑士.png",8,850,40,40, new VexHoverText(Arrays.asList("§c蜘蛛骑士"))));
vsl.addComponent(new VexImage("[local]流浪者.png",54,850,40,40, new VexHoverText(Arrays.asList("§c流浪者"))));
vsl.addComponent(new VexImage("[local]恼鬼.png",100,850,40,40, new VexHoverText(Arrays.asList("§c恼鬼"))));
vsl.addComponent(new VexImage("[local]卫道士.png",146,850,40,40, new VexHoverText(Arrays.asList("§c卫道士"))));
vsl.addComponent(new VexImage("[local]女巫.png",192,850,40,40, new VexHoverText(Arrays.asList("§c女巫"))));
vsl.addComponent(new VexImage("[local]凋零骷髅.png",8,895,40,40, new VexHoverText(Arrays.asList("§c凋零骷髅"))));
vsl.addComponent(new VexImage("[local]僵尸疣猪兽.png",54,895,40,40, new VexHoverText(Arrays.asList("§c僵尸疣猪兽"))));
vsl.addComponent(new VexImage("[local]僵尸.png",100,895,40,40, new VexHoverText(Arrays.asList("§c僵尸"))));
vsl.addComponent(new VexImage("[local]僵尸村民.png",146,895,40,40, new VexHoverText(Arrays.asList("§c僵尸村民"))));
vsl.addComponent(new VexText(20, 955, Arrays.asList("§dBoss生物")));
vsl.addComponent(new VexText(20, 965, Arrays.asList("§5Boss生物是一种非常耐打且具有破坏性的攻击型生物,")));
vsl.addComponent(new VexText(20, 975, Arrays.asList("§5专为玩家设计用于更长期、更危险和更大规模的战斗。")));
vsl.addComponent(new VexText(20, 985, Arrays.asList("§5他们通常对大多数状态效果免疫,")));
vsl.addComponent(new VexText(20, 995, Arrays.asList("§5并且能够看到受隐身效果的生物。")));
vsl.addComponent(new VexText(20, 1005, Arrays.asList("§5只有两种boss生物存在。")));
vsl.addComponent(new VexImage("[local]末影龙.png",8,1025,40,40, new VexHoverText(Arrays.asList("§c末影龙"))));
vsl.addComponent(new VexImage("[local]凋零.png",54,1025,40,40, new VexHoverText(Arrays.asList("§c凋零"))));
vsl.addComponent(new VexText(20, 1085, Arrays.asList("§d即将到来")));
vsl.addComponent(new VexText(20, 1095, Arrays.asList("§5即将到来的生物是只在开发版本才有的生物。")));
vsl.addComponent(new VexImage("[local]猪灵蛮兵.png",8,1115,40,40, new VexHoverText(Arrays.asList("§c猪灵蛮兵"))));
vsl.addComponent(new VexText(20, 1175, Arrays.asList("§d未使用的生物")));
vsl.addComponent(new VexText(20, 1185, Arrays.asList("§5未使用的生物可以在游戏源代码中找到,")));
vsl.addComponent(new VexText(20, 1195, Arrays.asList("§5并且只能通过使用/summon命令或刷怪蛋生成。")));
vsl.addComponent(new VexText(20, 1205, Arrays.asList("§5它们不会在游戏中自然生成。")));
vsl.addComponent(new VexImage("[local]巨人.png",8,1225,40,40, new VexHoverText(Arrays.asList("§c巨人"))));
vsl.addComponent(new VexImage("[local]幻术师.png",54,1225,40,40, new VexHoverText(Arrays.asList("§c幻术师"))));
vsl.addComponent(new VexImage("[local]杀手兔.png",100,1225,40,40, new VexHoverText(Arrays.asList("§c杀手兔"))));
vsl.addComponent(new VexImage("[local]僵尸马.png",146,1225,40,40, new VexHoverText(Arrays.asList("§c僵尸马"))));
vsl.addComponent(new VexText(20, 1285, Arrays.asList("§d已移除/未实现的生物")));
vsl.addComponent(new VexText(20, 1295, Arrays.asList("§5已移除的生物不再存在于当前版本的游戏中。")));
vsl.addComponent(new VexText(20, 1305, Arrays.asList("§5未实现的生物是计划用于之前的版本但从未添加过的生物。")));
vsl.addComponent(new VexImage("[local]野兽小子.png",8,1325,40,40, new VexHoverText(Arrays.asList("§c野兽小子"))));
vsl.addComponent(new VexImage("[local]黑史蒂夫.png",54,1325,40,40, new VexHoverText(Arrays.asList("§c黑史蒂夫"))));
vsl.addComponent(new VexImage("[local]人类.png",100,1325,40,40, new VexHoverText(Arrays.asList("§c人类"))));
vsl.addComponent(new VexImage("[local]拉娜.png",146,1325,40,40, new VexHoverText(Arrays.asList("§c拉娜"))));
vsl.addComponent(new VexImage("[local]猪人.png",192,1325,40,40, new VexHoverText(Arrays.asList("§c猪人"))));
vsl.addComponent(new VexImage("[local]史蒂夫.png",8,1370,40,40, new VexHoverText(Arrays.asList("§c史蒂夫"))));
vsl.addComponent(new VexImage("[local]村民、村庄和掠夺前.png",54,1370,40,40, new VexHoverText(Arrays.asList("§c村民、村庄和掠夺前"))));
vsl.addComponent(new VexImage("[local]僵尸猪人.png",100,1370,40,40, new VexHoverText(Arrays.asList("§c僵尸猪人"))));
vsl.addComponent(new VexText(20, 1430, Arrays.asList("§d教育版生物")));
vsl.addComponent(new VexText(20, 1440, Arrays.asList("§5这些生物只出现在教育版和基岩版中,")));
vsl.addComponent(new VexText(20, 1450, Arrays.asList("§5但吉祥物在基岩版中未使用。")));
vsl.addComponent(new VexImage("[local]吉祥物.png",8,1470,40,40, new VexHoverText(Arrays.asList("§c吉祥物"))));
vsl.addComponent(new VexImage("[local]NPC.png",54,1470,40,40, new VexHoverText(Arrays.asList("§cNPC"))));
list.add(vsl);
return new VexGui("[local]背景2.png", -1, -1, 240, 200, list);
}
public static VexGui zhuangbeiGui() {
List<VexComponents> list = new ArrayList<>();
VexScrollingList vsl = new VexScrollingList(-1,-1,200,150,550);
vsl.addComponent(new VexImage("[local]剑.png",10,37,50,50, new VexHoverText(Arrays.asList("§4剑"))));
vsl.addComponent(new VexImage("[local]铲.png",70,37,50,50, new VexHoverText(Arrays.asList("§4铲"))));
vsl.addComponent(new VexImage("[local]锄.png",130,37,50,50, new VexHoverText(Arrays.asList("§4锄"))));
vsl.addComponent(new VexImage("[local]装备大全.png",37,97,128,424, new VexHoverText(Arrays.asList("§4装备大全"))));
vsl.addComponent(new VexButton(5, "", "[local]返回1.jpg", "[local]返回2.jpg", 5, 8, 15, 15, new VexHoverText(Arrays.asList("§1返回"))));
vsl.addComponent(new VexButton(6, "", "[local]退出1.jpg", "[local]退出2.jpg", 178, 8, 15, 15,new VexHoverText(Arrays.asList("§1退出"))));
vsl.addComponent(new VexText(85, 12, Arrays.asList("§d装备图鉴")));
list.add(vsl);
return new VexGui("[local]装备背景.png", -1, -1, 200, 150, list);
}
public static VexGui chengjiuGui() {
List<VexComponents> list = new ArrayList<>();
VexScrollingList vsl = new VexScrollingList(-1,-1,280,200,2300);
vsl.addComponent(new VexButton(5, "", "[local]返回1.jpg", "[local]返回2.jpg", 10, 8, 15, 15, new VexHoverText(Arrays.asList("§1返回"))));
vsl.addComponent(new VexButton(6, "", "[local]退出1.jpg", "[local]退出2.jpg", 250, 8, 15, 15,new VexHoverText(Arrays.asList("§1退出"))));
vsl.addComponent(new VexText(135, 20, Arrays.asList("§d悬赏任务")));
vsl.addComponent(new VexButton(7, "", "[local]奖励1.jpg", "[local]奖励2.jpg", 220, 50, 20, 20,new VexHoverText(Arrays.asList("§6奖励"))));
vsl.addComponent(new VexText(20, 100, Arrays.asList("§d任务列表")));
vsl.addComponent(new VexImage("[local]打开物品栏.png",120,150,50,50, new VexHoverText(Arrays.asList("§c打开物品栏"))));
vsl.addComponent(new VexText(20, 210, Arrays.asList("§d任务:打开物品栏")));
vsl.addComponent(new VexText(20, 220, Arrays.asList("§5描述:按“E”来打开你的物品栏")));
vsl.addComponent(new VexText(20, 230, Arrays.asList("§5需求:打开你的物品栏。简介会与设置的物品栏键所相符。")));
vsl.addComponent(new VexText(20, 240, Arrays.asList("§5成就点数:100")));
vsl.addComponent(new VexImage("[local]获得木头.png",120,260,50,50, new VexHoverText(Arrays.asList("§c获得木头"))));
vsl.addComponent(new VexText(20, 320, Arrays.asList("§d任务:获得木头")));
vsl.addComponent(new VexText(20, 330, Arrays.asList("§5描述:摧毁树木直到跳出一个木头方块")));
vsl.addComponent(new VexText(20, 340, Arrays.asList("§5需求:从地上捡起一个原木方块。")));
vsl.addComponent(new VexText(20, 350, Arrays.asList("§5成就点数:100")));
vsl.addComponent(new VexImage("[local]制作工作台.png",120,370,50,50, new VexHoverText(Arrays.asList("§c制作工作台"))));
vsl.addComponent(new VexText(20, 430, Arrays.asList("§d任务:制作工作台")));
vsl.addComponent(new VexText(20, 440, Arrays.asList("§5描述:用四个木板来制作一个工作台")));
vsl.addComponent(new VexText(20, 450, Arrays.asList("§5需求:从物品栏内的合成输出栏取得工作台。")));
vsl.addComponent(new VexText(20, 460, Arrays.asList("§5成就点数:200")));
vsl.addComponent(new VexImage("[local]采矿时间到!.png",120,480,50,50, new VexHoverText(Arrays.asList("§c采矿时间到!"))));
vsl.addComponent(new VexText(20, 540, Arrays.asList("§d任务:采矿时间到!")));
vsl.addComponent(new VexText(20, 550, Arrays.asList("§5描述:使用木板和木棍来制作木镐")));
vsl.addComponent(new VexText(20, 560, Arrays.asList("§5需求:从工作台的输出栏取得任何种类的镐。")));
vsl.addComponent(new VexText(20, 570, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]“热”门话题.png",120,590,50,50, new VexHoverText(Arrays.asList("§c“热”门话题"))));
vsl.addComponent(new VexText(20, 650, Arrays.asList("§d任务:“热”门话题")));
vsl.addComponent(new VexText(20, 660, Arrays.asList("§5描述:用八个圆石来制作一个熔炉")));
vsl.addComponent(new VexText(20, 670, Arrays.asList("§5需求:从工作台的输出栏取得熔炉。")));
vsl.addComponent(new VexText(20, 680, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]来硬的.png",120,700,50,50, new VexHoverText(Arrays.asList("§c来硬的"))));
vsl.addComponent(new VexText(20, 760 ,Arrays.asList("§d任务:来硬的")));
vsl.addComponent(new VexText(20, 770, Arrays.asList("§5描述:冶炼出一块铁锭")));
vsl.addComponent(new VexText(20, 780, Arrays.asList("§5需求:从熔炉的输出栏取得铁锭。")));
vsl.addComponent(new VexText(20, 790 , Arrays.asList("§5成就点数:200")));
vsl.addComponent(new VexImage("[local]自由潜水员.png",120,810,50,50, new VexHoverText(Arrays.asList("§c自由潜水员"))));
vsl.addComponent(new VexText(20, 870, Arrays.asList("§d任务:自由潜水员")));
vsl.addComponent(new VexText(20, 880, Arrays.asList("§5描述:留在水下2分钟。")));
vsl.addComponent(new VexText(20, 890, Arrays.asList("§5需求:—")));
vsl.addComponent(new VexText(20, 900, Arrays.asList("§5成就点数:200")));
vsl.addComponent(new VexImage("[local]耕种时间到!.png",120,920,50,50, new VexHoverText(Arrays.asList("§c耕种时间到!"))));
vsl.addComponent(new VexText(20, 980, Arrays.asList("§d任务:耕种时间到!")));
vsl.addComponent(new VexText(20, 990, Arrays.asList("§5描述:使用木板和木棍来制作木锄")));
vsl.addComponent(new VexText(20, 1000, Arrays.asList("§5需求:从工作台的输出栏取得任何种类的锄。")));
vsl.addComponent(new VexText(20, 1010, Arrays.asList("§5成就点数:200")));
vsl.addComponent(new VexImage("[local]烤面包.png",120,1030,50,50, new VexHoverText(Arrays.asList("§c烤面包"))));
vsl.addComponent(new VexText(20, 1090, Arrays.asList("§d任务:烤面包")));
vsl.addComponent(new VexText(20, 1100, Arrays.asList("§5描述:用小麦来做面包")));
vsl.addComponent(new VexText(20, 1110, Arrays.asList("§5需求:从工作台的输出栏取得面包。")));
vsl.addComponent(new VexText(20, 1120, Arrays.asList("§5成就点数:200")));
vsl.addComponent(new VexImage("[local]蛋糕是个谎言.png",120,1140,50,50, new VexHoverText(Arrays.asList("§c蛋糕是个谎言"))));
vsl.addComponent(new VexText(20, 1200, Arrays.asList("§d任务:蛋糕是个谎言")));
vsl.addComponent(new VexText(20, 1210, Arrays.asList("§5描述:小麦、糖、牛奶和鸡蛋!")));
vsl.addComponent(new VexText(20, 1220, Arrays.asList("§5需求:从工作台的输出栏取得蛋糕。")));
vsl.addComponent(new VexText(20, 1230, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]获得升级.png",120,1250,50,50, new VexHoverText(Arrays.asList("§c获得升级"))));
vsl.addComponent(new VexText(20, 1310, Arrays.asList("§d任务:获得升级")));
vsl.addComponent(new VexText(20, 1320, Arrays.asList("§5描述:制作一把更好的镐")));
vsl.addComponent(new VexText(20, 1330, Arrays.asList("§5需求:从工作台的输出栏取得除木镐外的镐。")));
vsl.addComponent(new VexText(20, 1340, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]美味的鱼儿.png",120,1360,50,50, new VexHoverText(Arrays.asList("§c美味的鱼儿"))));
vsl.addComponent(new VexText(20, 1420, Arrays.asList("§d任务:美味的鱼儿")));
vsl.addComponent(new VexText(20, 1430, Arrays.asList("§5描述:抓了鱼儿然后烤!")));
vsl.addComponent(new VexText(20, 1440, Arrays.asList("§5需求:从熔炉的输出栏取得熟鱼。")));
vsl.addComponent(new VexText(20, 1450, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]出击时间到!.png",120,1470,50,50, new VexHoverText(Arrays.asList("§c出击时间到!"))));
vsl.addComponent(new VexText(20, 1530, Arrays.asList("§d任务:出击时间到!")));
vsl.addComponent(new VexText(20, 1540, Arrays.asList("§5描述:使用木板和木棍来制作一把木剑!")));
vsl.addComponent(new VexText(20, 1550, Arrays.asList("§5需求:从工作台的输出栏取得任何种类的剑。")));
vsl.addComponent(new VexText(20, 1560, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]怪物猎人.png",120,1580,50,50, new VexHoverText(Arrays.asList("§c怪物猎人"))));
vsl.addComponent(new VexText(20, 1640, Arrays.asList("§d任务:怪物猎人")));
vsl.addComponent(new VexText(20, 1650, Arrays.asList("§5描述:攻击并消灭一只怪物")));
vsl.addComponent(new VexText(20, 1660, Arrays.asList("§5需求:杀死一只攻击型生物或下列中立型生物:")));
vsl.addComponent(new VexText(20, 1670, Arrays.asList("§5末影人、僵尸猪人、蜘蛛、洞穴蜘蛛。")));
vsl.addComponent(new VexText(20, 1680, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]斗牛士.png",120,1690,50,50, new VexHoverText(Arrays.asList("§c斗牛士"))));
vsl.addComponent(new VexText(20, 1750, Arrays.asList("§d任务:斗牛士")));
vsl.addComponent(new VexText(20, 1760, Arrays.asList("§5描述:获得一些皮革")));
vsl.addComponent(new VexText(20, 1770, Arrays.asList("§5需求:从地上捡起皮革。")));
vsl.addComponent(new VexText(20, 1780, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]钻石!.png",120,1800,50,50, new VexHoverText(Arrays.asList("§c钻石!"))));
vsl.addComponent(new VexText(20, 1860, Arrays.asList("§d任务:钻石!")));
vsl.addComponent(new VexText(20, 1870, Arrays.asList("§5描述:用你的铁镐,挖一些钻石吧")));
vsl.addComponent(new VexText(20, 1880, Arrays.asList("§5需求:从地上捡起一颗钻石。")));
vsl.addComponent(new VexText(20, 1890, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]工具达人.png",120,1910,50,50, new VexHoverText(Arrays.asList("§c工具达人"))));
vsl.addComponent(new VexText(20, 1970, Arrays.asList("§d任务:工具达人")));
vsl.addComponent(new VexText(20, 1980, Arrays.asList("§5描述:每种类型的工具各制作一个(镐、锹、斧和锄)。")));
vsl.addComponent(new VexText(20, 1990, Arrays.asList("§5需求:—")));
vsl.addComponent(new VexText(20, 2000, Arrays.asList("§5成就点数:400")));
vsl.addComponent(new VexImage("[local]附魔师.png",120,2020,50,50, new VexHoverText(Arrays.asList("§c附魔师"))));
vsl.addComponent(new VexText(20, 2080, Arrays.asList("§d任务:附魔师")));
vsl.addComponent(new VexText(20, 2090, Arrays.asList("§5描述:使用书、黑曜石以及钻石来制作一个附魔台")));
vsl.addComponent(new VexText(20, 2100, Arrays.asList("§5需求:从工作台的输出栏取得附魔台。")));
vsl.addComponent(new VexText(20, 2110, Arrays.asList("§5成就点数:600")));
vsl.addComponent(new VexImage("[local]打发时间.png",120,2130,50,50, new VexHoverText(Arrays.asList("§c打发时间"))));
vsl.addComponent(new VexText(20, 2190, Arrays.asList("§d任务:打发时间")));
vsl.addComponent(new VexText(20, 2200, Arrays.asList("§5描述:玩上100天。")));
vsl.addComponent(new VexText(20, 2210, Arrays.asList("§5需求:游玩100个Minecraft天,在现实世界中约等于33个小时。")));
vsl.addComponent(new VexText(20, 2220, Arrays.asList("§5成就点数:600")));
list.add(vsl);
return new VexGui("[local]gui.png", -1, -1, 280, 200, list);
}
public static VexGui jiangliGui(Player player) {
int cj = SQLManager.get().FindChengjiu(player.getName());
List<VexComponents> list = new ArrayList<>();
VexScrollingList vsl = new VexScrollingList(-1,-1,200,160,1550);
vsl.addComponent(new VexButton(5, "", "[local]返回1.jpg", "[local]返回2.jpg", 10, 8, 15, 15, new VexHoverText(Arrays.asList("§1返回"))));
vsl.addComponent(new VexButton(6, "", "[local]退出1.jpg", "[local]退出2.jpg", 180, 8, 15, 15,new VexHoverText(Arrays.asList("§1退出"))));
vsl.addComponent(new VexText(90, 20, Arrays.asList("§d奖励")));
vsl.addComponent(new VexText(20,40, Arrays.asList("玩家名:"+player.getName(),"","","成就点数:"+ cj)));
vsl.addComponent(new VexText(20, 60, Arrays.asList("§d成就奖励")));
vsl.addComponent(new VexImage("[local]青铜.png",85,80,50,50, new VexHoverText(Arrays.asList("§c青铜"))));
vsl.addComponent(new VexText(20, 140, Arrays.asList("§d成就段位:青铜")));
vsl.addComponent(new VexText(20, 160, Arrays.asList("§5需求:成就点数:1~1499")));
vsl.addComponent(new VexText(20, 170, Arrays.asList("§5奖励:青铜特效:“闪电风暴”")));
vsl.addComponent(new VexGifImage("[local]闪电风暴.gif",40, 190, 80, 60,80,60,new VexHoverText(Arrays.asList("§c青铜特效"))));
if (cj > 0) {
vsl.addComponent(new VexButton(8, "装备", "[local]button.png", "[local]button_.png", 150, 210, 40, 15, new VexHoverText(Arrays.asList("§c装备特效"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 210, 40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
vsl.addComponent(new VexText(0, 250, Arrays.asList("§d------------------------------------------------")));
vsl.addComponent(new VexImage("[local]白银.png",85,270,50,50, new VexHoverText(Arrays.asList("§c白银"))));
vsl.addComponent(new VexText(20, 330, Arrays.asList("§d成就段位:白银")));
vsl.addComponent(new VexText(20, 340, Arrays.asList("§5需求:成就点数:1500~1999")));
vsl.addComponent(new VexText(20, 350, Arrays.asList("§5奖励:白银特效:“龙之吐息“")));
vsl.addComponent(new VexGifImage("[local]龙之吐息.gif",40,370,80,60,80,60, new VexHoverText(Arrays.asList("§c白银特效"))));
if(cj >= 1500) {
vsl.addComponent(new VexButton(10, "装备", "[local]button.png", "[local]button_.png", 150, 390, 40, 15, new VexHoverText(Arrays.asList("§c装备特效"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 390, 40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
vsl.addComponent(new VexText(0, 430, Arrays.asList("§d------------------------------------------------")));
vsl.addComponent(new VexImage("[local]黄金.png",85,450,50,50, new VexHoverText(Arrays.asList("§c黄金"))));
vsl.addComponent(new VexText(20, 510, Arrays.asList("§d成就段位:黄金")));
vsl.addComponent(new VexText(20, 520, Arrays.asList("§5需求:成就点数:2000~2499")));
vsl.addComponent(new VexText(20, 530, Arrays.asList("§5奖励:称号:“羿若惊羽”")));
vsl.addComponent(new VexGifImage("[local]羿若惊羽.gif",10,550,120,60,120,60, new VexHoverText(Arrays.asList("§c黄金称号"))));
if (cj >= 2000) {
vsl.addComponent(new VexButton(12, "装备", "[local]button.png", "[local]button_.png", 150, 550, 40, 15, new VexHoverText(Arrays.asList("§c装备称号"))));
vsl.addComponent(new VexButton(13, "取消装备", "[local]button.png", "[local]button_.png", 150, 590, 40, 15, new VexHoverText(Arrays.asList("§c取消称号"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 550, 40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
vsl.addComponent(new VexText(0, 610, Arrays.asList("§d------------------------------------------------")));
vsl.addComponent(new VexImage("[local]铂金.png",85,630,50,50, new VexHoverText(Arrays.asList("§c铂金"))));
vsl.addComponent(new VexText(20, 690, Arrays.asList("§d成就段位:铂金")));
vsl.addComponent(new VexText(20, 700, Arrays.asList("§5需求:成就点数:2500~2999")));
vsl.addComponent(new VexText(20, 710, Arrays.asList("§5奖励:称号:“魅影无双”")));
vsl.addComponent(new VexGifImage("[local]魅影无双.gif",10,730,120,60,120,60, new VexHoverText(Arrays.asList("§c铂金称号"))));
if (cj >= 2500) {
vsl.addComponent(new VexButton(14, "装备", "[local]button.png", "[local]button_.png", 150, 730, 40, 15, new VexHoverText(Arrays.asList("§c装备称号"))));
vsl.addComponent(new VexButton(15, "取消装备", "[local]button.png", "[local]button_.png", 150, 770, 40, 15, new VexHoverText(Arrays.asList("§c取消称号"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 730,40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
vsl.addComponent(new VexText(0, 790, Arrays.asList("§d------------------------------------------------")));
vsl.addComponent(new VexGifImage("[local]钻石.gif",85,810,60,30,60,30, new VexHoverText(Arrays.asList("§c钻石"))));
vsl.addComponent(new VexText(20, 870, Arrays.asList("§d成就段位:钻石")));
vsl.addComponent(new VexText(20, 880, Arrays.asList("§5需求:成就点数:3000~3499")));
vsl.addComponent(new VexText(20, 890, Arrays.asList("§5奖励:称号:“仙神蕴灵”")));
vsl.addComponent(new VexGifImage("[local]仙神蕴灵.gif",10,910,120,60,120,60, new VexHoverText(Arrays.asList("§c钻石称号"))));
if (cj >= 3000) {
vsl.addComponent(new VexButton(16, "装备", "[local]button.png", "[local]button_.png", 150, 910, 40, 15, new VexHoverText(Arrays.asList("§c装备称号"))));
vsl.addComponent(new VexButton(17, "取消装备", "[local]button.png", "[local]button_.png", 150, 950, 40, 15, new VexHoverText(Arrays.asList("§c取消称号"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 910, 40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
vsl.addComponent(new VexText(0, 970, Arrays.asList("§d------------------------------------------------")));
vsl.addComponent(new VexGifImage("[local]大师.gif",85,990,60,30, 60,30,new VexHoverText(Arrays.asList("§c大师"))));
vsl.addComponent(new VexText(20, 1050, Arrays.asList("§d成就段位:大师")));
vsl.addComponent(new VexText(20, 1060, Arrays.asList("§5需求:成就点数:3500~3999")));
vsl.addComponent(new VexText(20, 1070, Arrays.asList("§5奖励:称号:“傲视天下”")));
vsl.addComponent(new VexGifImage("[local]傲视天下.gif",10,1090,120,60,120,60, new VexHoverText(Arrays.asList("§c大师称号"))));
if (cj >= 3500) {
vsl.addComponent(new VexButton(18, "装备", "[local]button.png", "[local]button_.png", 150, 1090, 40, 15, new VexHoverText(Arrays.asList("§c装备称号"))));
vsl.addComponent(new VexButton(19, "取消装备", "[local]button.png", "[local]button_.png", 150, 1130, 40, 15, new VexHoverText(Arrays.asList("§c取消称号"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 1090, 40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
vsl.addComponent(new VexText(0, 1150, Arrays.asList("§d------------------------------------------------")));
vsl.addComponent(new VexGifImage("[local]宗师.gif",85,1170,60,30,60,30, new VexHoverText(Arrays.asList("§c宗师"))));
vsl.addComponent(new VexText(20, 1230, Arrays.asList("§d成就段位:宗师")));
vsl.addComponent(new VexText(20, 1240, Arrays.asList("§5需求:成就点数:4000~4499")));
vsl.addComponent(new VexText(20, 1250, Arrays.asList("§5奖励:称号:“御神役鬼”")));
vsl.addComponent(new VexGifImage("[local]御神役鬼.gif",10,1270,120,60,120,60, new VexHoverText(Arrays.asList("§c宗师称号"))));
if (cj >= 4000) {
vsl.addComponent(new VexButton(20, "装备", "[local]button.png", "[local]button_.png", 150, 1270, 40, 15, new VexHoverText(Arrays.asList("§c装备称号"))));
vsl.addComponent(new VexButton(21, "取消装备", "[local]button.png", "[local]button_.png", 150, 1310, 40, 15, new VexHoverText(Arrays.asList("§c取消称号"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 1270, 40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
vsl.addComponent(new VexText(0, 1330, Arrays.asList("§d------------------------------------------------")));
vsl.addComponent(new VexGifImage("[local]五百强.gif",85,1350,60,30,60,30, new VexHoverText(Arrays.asList("§c五百强"))));
vsl.addComponent(new VexText(20, 1410, Arrays.asList("§d成就段位:五百强")));
vsl.addComponent(new VexText(20, 1420, Arrays.asList("§5需求:成就点数:4500~")));
vsl.addComponent(new VexText(20, 1430, Arrays.asList("§5奖励:五百强称号:“八荒雷动·傲视群雄”")));
vsl.addComponent(new VexGifImage("[local]傲视群雄.gif",10,1450,120,60,120,60,new VexHoverText(Arrays.asList("§c五百强称号"))));
if(cj >= 4500){
vsl.addComponent(new VexButton(22, "装备", "[local]button.png", "[local]button_.png", 150, 1450, 40, 15, new VexHoverText(Arrays.asList("§c装备称号"))));
vsl.addComponent(new VexButton(23, "取消装备", "[local]button.png", "[local]button_.png", 150, 1490, 40, 15, new VexHoverText(Arrays.asList("§c取消称号"))));
}else{
vsl.addComponent(new VexImage("[local]button.png",150, 1450, 40, 15, new VexHoverText(Arrays.asList("§c无法点击"))));
}
list.add(vsl);
return new VexGui("[local]贴图5.jpg", -1, -1, 200, 160, list);
}
}
学习事件系统
Tag自定义
VexView提供了非常多的事件供开发者使用,它们位于lk.vexview.events包下。
比较实用的包括 KeyBoardPressEvent(按键事件)
、VexGuiCloseEvent/VexGuiOpneEvent(Gui关闭/打开事件),
包括我们上一章提到的ButtonClickEvent也在其中。
我们教程这里演示KeyBoardPressEvent,也就是玩家按下键盘上的按键触发的事件。
比如我在插件中实现了监听玩家加入游戏之后,显示一个健康游戏公告10s,实现了称号系统作为成就奖励:
public void PlayerJoinFinishEvent(VerificationFinishEvent event){
Player player = event.getPlayer();
VexImageShow vis = new VexImageShow(“0”,"[local]欢迎.jpg",-1,-1,240,160,240,160,10);
VexViewAPI.sendHUD(player,vis);