• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java EffectManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中de.slikey.effectlib.EffectManager的典型用法代码示例。如果您正苦于以下问题:Java EffectManager类的具体用法?Java EffectManager怎么用?Java EffectManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EffectManager类属于de.slikey.effectlib包,在下文中一共展示了EffectManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: enableCosmetic

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
@Override
public void enableCosmetic(Player player, ParticleCosmetic cosmetic, ClickType clickType, boolean login, NullType useless)
{
    try
    {
        Effect particleEffectObject = cosmetic.getParticleEffect().getConstructor(EffectManager.class).newInstance(this.effectManager);
        particleEffectObject.setEntity(player);
        particleEffectObject.infinite();
        particleEffectObject.start();

        this.playersParticleEffect.put(player.getUniqueId(), particleEffectObject);

        if (!login)
            player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Vous voilà noyé sous les particules...");
    }
    catch (ReflectiveOperationException e)
    {
        this.hub.getCosmeticManager().log(Level.SEVERE, "Can't create EntityEffect object to " + player.getName() + "'s particle effect!");
    }
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:21,代码来源:ParticleManager.java


示例2: onEnable

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
/**
 * Main class for iTrail.
 * @author Incomprehendable
 * @author fooify
 */

public void onEnable() {
	plugin = this;
	javaPlugin = this;

	File configFile = new File(this.getDataFolder(), "config.yml");
	if (!configFile.exists()) {
		configFile.getParentFile().mkdirs();
		copy(this.getResource("config.yml"), configFile);
	}

	MenuListener.getInstance().register(this);
	effectManager = new EffectManager(EffectLib.instance());
	// REGISTER LISTENERS!
}
 
开发者ID:Incomp,项目名称:iTrail,代码行数:21,代码来源:Main.java


示例3: initialize

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
@Override
public void initialize() {
    em = new EffectManager(plugin);
    File dir = new File(plugin.getDataFolder() + "/effects/");
    if(!dir.exists())
        dir.mkdirs();
    for(File f : dir.listFiles()) {
        f.delete();
    }
    System.out.println("Cleared cached effects.");
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:12,代码来源:ParticleManager.java


示例4: ColoredHeartEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public ColoredHeartEffect(EffectManager effectManager, org.bukkit.Color clr) {
    super(effectManager);
    type = EffectType.REPEATING;
    period = 5;
    iterations = -1;
    this.clr = clr;
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:8,代码来源:ColoredHeartEffect.java


示例5: InfernoTagEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public InfernoTagEffect(EffectManager effectManager, String text) {
    super(effectManager);
    this.text = text;
    this.font = new Font("Tahoma", Font.PLAIN, 9);
    type = EffectType.REPEATING;
    period = 10;
    iterations = -1;
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:9,代码来源:InfernoTagEffect.java


示例6: WingsEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public WingsEffect(EffectManager effectManager, float scaling, float yAdjust, float xzAdjust, boolean leftWing, boolean rightWing, org.bukkit.Color leftColor, org.bukkit.Color rightColor, int step) {
    super(effectManager);
    type = EffectType.REPEATING;
    period = 5;
    iterations = -1;
    this.size = scaling;
    this.yAdjust = yAdjust;
    this.xzAdjust = xzAdjust;
    this.leftWing = leftWing;
    this.rightWing = rightWing;
    this.leftColor = leftColor;
    this.rightColor = rightColor;
    this.step = step;
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:15,代码来源:WingsEffect.java


示例7: CustomWarpEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public CustomWarpEffect(EffectManager effectManager, Location loc, int time) {
    super(effectManager);
    type = EffectType.REPEATING;
    period = 1;
    iterations = time * 20 / period;
    grow = 2.2f / iterations;
    this.loc = loc.add(0, -0.65, 0);
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:9,代码来源:CustomWarpEffect.java


示例8: FreezeSpellEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public FreezeSpellEffect(EffectManager effectManager, Location loc, int time) {
    super(effectManager);
    type = EffectType.REPEATING;
    period = 10;
    iterations = time * 2;
    this.loc = loc;
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:8,代码来源:FreezeSpellEffect.java


示例9: FreezeSpellEndEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public FreezeSpellEndEffect(EffectManager effectManager, Location loc, int time) {
    super(effectManager);
    type = EffectType.REPEATING;
    period = 10;
    iterations = time * 2;
    this.loc = loc;
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:8,代码来源:FreezeSpellEndEffect.java


示例10: FlameBreathEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public FlameBreathEffect(EffectManager effectManager) {
    super(effectManager);
    type = EffectType.REPEATING;
    period = 2;
    iterations = -1;
    rndF = new ArrayList<Float>(arcs);
    rndAngle = new ArrayList<Double>(arcs);
}
 
开发者ID:edasaki,项目名称:ZentrelaRPG,代码行数:9,代码来源:FlameBreathEffect.java


示例11: ParticleManager

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public ParticleManager(Hub hub)
{
    super(hub, new ParticleRegistry(hub));

    this.playersParticleEffect = new HashMap<>();
    this.effectManager = new EffectManager(hub.getEffectLib());
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:8,代码来源:ParticleManager.java


示例12: MusicEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public MusicEffect(EffectManager effectManager)
{
    super(effectManager);
    this.type = EffectType.REPEATING;
    this.period = 4;
    this.iterations = -1;
    this.asynchronous = true;
    this.random = new Random();
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:10,代码来源:MusicEffect.java


示例13: EnchantedEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public EnchantedEffect(EffectManager effectManager)
{
    super(effectManager);
    this.period = 2;
    this.iterations = 5;
    this.random = new Random();
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:8,代码来源:EnchantedEffect.java


示例14: StepEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public StepEffect(EffectManager effectManager)
{
    super(effectManager);
    type = EffectType.REPEATING;
    period = 4;
    iterations = -1;
    this.asynchronous = true;
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:9,代码来源:StepEffect.java


示例15: NervousEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public NervousEffect(EffectManager effectManager)
{
    super(effectManager);
    this.type = EffectType.REPEATING;
    this.period = 4;
    this.iterations = -1;
    this.asynchronous = true;
    this.random = new Random();
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:10,代码来源:NervousEffect.java


示例16: RainyEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public RainyEffect(EffectManager effectManager)
{
    super(effectManager);
    type = EffectType.REPEATING;
    period = 2;
    iterations = -1;
    this.asynchronous = true;
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:9,代码来源:RainyEffect.java


示例17: SnowyEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public SnowyEffect(EffectManager effectManager)
{
    super(effectManager);
    type = EffectType.REPEATING;
    period = 2;
    iterations = -1;
    this.asynchronous = true;
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:9,代码来源:SnowyEffect.java


示例18: LoverEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public LoverEffect(EffectManager effectManager)
{
    super(effectManager);
    this.type = EffectType.REPEATING;
    this.period = 4;
    this.iterations = -1;
    this.asynchronous = true;
    this.random = new Random();
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:10,代码来源:LoverEffect.java


示例19: FireEffect

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
public FireEffect(EffectManager effectManager)
{
    super(effectManager);
    type = EffectType.REPEATING;
    period = 4;
    iterations = 2;
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:8,代码来源:FireEffect.java


示例20: setupManagers

import de.slikey.effectlib.EffectManager; //导入依赖的package包/类
private void setupManagers() {
	EffectLib lib = EffectLib.instance();
	listenerManager = new ListenerManager(this);
	tribeManager = new TribeManager(this);
	playerManager = new PlayerManager(this);
	abilityManager = new AbilityManager(this);
	runeManager = new RuneManager(this);
	effectManager = new EffectManager(lib);
	worldGuard = registerWorldGuard();
	plots = new PlotAPI();
}
 
开发者ID:benNek,项目名称:AsgardAscension,代码行数:12,代码来源:Main.java



注:本文中的de.slikey.effectlib.EffectManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SQLPropertyExpr类代码示例发布时间:2022-05-22
下一篇:
Java BsonDouble类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap