Class LootingLevelEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LootingLevelEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLootingLevelEvent
(LivingEntity entity, @Nullable DamageSource damageSource, int lootingLevel) -
Method Summary
Modifier and TypeMethodDescription@Nullable DamageSource
int
void
setLootingLevel
(int lootingLevel) Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
damageSource
-
lootingLevel
private int lootingLevel
-
-
Constructor Details
-
LootingLevelEvent
public LootingLevelEvent(LivingEntity entity, @Nullable @Nullable DamageSource damageSource, int lootingLevel)
-
-
Method Details
-
getDamageSource
-
getLootingLevel
public int getLootingLevel() -
setLootingLevel
public void setLootingLevel(int lootingLevel)
-