当前位置: 首页>>代码示例>>Java>>正文


Java EffectManager类代码示例

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


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


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