mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 23:13:15 +00:00
Merge #3060 into 1.10.x
This commit is contained in:
commit
7e36205ba7
4 files changed
+67
-16
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package net.minecraftforge.event.entity.living;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.DamageSource;
|
||||
|
||||
public class LootingLevelEvent extends LivingEvent {
|
||||
|
||||
private final DamageSource damageSource;
|
||||
|
||||
private int lootingLevel;
|
||||
|
||||
public LootingLevelEvent(EntityLivingBase entity, DamageSource damageSource, int lootingLevel) {
|
||||
super(entity);
|
||||
this.damageSource = damageSource;
|
||||
this.lootingLevel = lootingLevel;
|
||||
}
|
||||
|
||||
public DamageSource getDamageSource() {
|
||||
return damageSource;
|
||||
}
|
||||
|
||||
public int getLootingLevel() {
|
||||
return lootingLevel;
|
||||
}
|
||||
|
||||
public void setLootingLevel(int lootingLevel) {
|
||||
this.lootingLevel = lootingLevel;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user