aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java
blob: 24348988d666161d942664d4debc606faa8fdfc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package gtPlusPlus.api.damage;

import net.minecraft.entity.Entity;
import net.minecraft.util.EntityDamageSourceIndirect;

public class BaseCustomDamageSource extends EntityDamageSourceIndirect  {

	public BaseCustomDamageSource(String name, Entity transmitter, Entity indirectSource) {
	    super(name, transmitter, indirectSource);
	    this.setDifficultyScaled();
	}
	
	 /**
     * Return whether this damage source will have its damage amount scaled based on the current difficulty.
     */
    public boolean isDifficultyScaled()
    {
    	return true;
    }

    
}