Remove Maven
This commit is contained in:
		
							
								
								
									
										12
									
								
								src/com/massivecraft/factions/mixin/PowerMixin.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								src/com/massivecraft/factions/mixin/PowerMixin.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
package com.massivecraft.factions.mixin;
 | 
			
		||||
 | 
			
		||||
import com.massivecraft.factions.entity.MPlayer;
 | 
			
		||||
 | 
			
		||||
public interface PowerMixin
 | 
			
		||||
{
 | 
			
		||||
	public double getMaxUniversal(MPlayer mplayer);
 | 
			
		||||
	public double getMax(MPlayer mplayer);
 | 
			
		||||
	public double getMin(MPlayer mplayer);
 | 
			
		||||
	public double getPerHour(MPlayer mplayer);
 | 
			
		||||
	public double getPerDeath(MPlayer mplayer);
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										49
									
								
								src/com/massivecraft/factions/mixin/PowerMixinDefault.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										49
									
								
								src/com/massivecraft/factions/mixin/PowerMixinDefault.java
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,49 @@
 | 
			
		||||
package com.massivecraft.factions.mixin;
 | 
			
		||||
 | 
			
		||||
import com.massivecraft.factions.entity.MConf;
 | 
			
		||||
import com.massivecraft.factions.entity.MPlayer;
 | 
			
		||||
 | 
			
		||||
public class PowerMixinDefault implements PowerMixin
 | 
			
		||||
{
 | 
			
		||||
	// -------------------------------------------- //
 | 
			
		||||
	// INSTANCE & CONSTRUCT
 | 
			
		||||
	// -------------------------------------------- //
 | 
			
		||||
	
 | 
			
		||||
	private static PowerMixinDefault i = new PowerMixinDefault();
 | 
			
		||||
	public static PowerMixinDefault get() { return i; }
 | 
			
		||||
	
 | 
			
		||||
	// -------------------------------------------- //
 | 
			
		||||
	// OVERRIDE: PowerMixin
 | 
			
		||||
	// -------------------------------------------- //
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public double getMaxUniversal(MPlayer mplayer)
 | 
			
		||||
	{
 | 
			
		||||
		return this.getMax(mplayer);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	@Override
 | 
			
		||||
	public double getMax(MPlayer mplayer)
 | 
			
		||||
	{
 | 
			
		||||
		return MConf.get().powerMax + mplayer.getPowerBoost();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public double getMin(MPlayer mplayer)
 | 
			
		||||
	{
 | 
			
		||||
		return MConf.get().powerMin;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public double getPerHour(MPlayer mplayer)
 | 
			
		||||
	{
 | 
			
		||||
		return MConf.get().powerPerHour;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	@Override
 | 
			
		||||
	public double getPerDeath(MPlayer mplayer)
 | 
			
		||||
	{
 | 
			
		||||
		return MConf.get().powerPerDeath;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user