Class LootingLevelEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.LootingLevelEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
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.neoforged.neoforge.event.entity.living.LivingEvent
getEntity
-
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)
-