Class CommonEvents.Entities
java.lang.Object
net.rebel459.unified.impl.core.CommonEvents.Entities
- Enclosing class:
CommonEvents
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<BiConsumer<net.minecraft.world.entity.LivingEntity, net.minecraft.world.damagesource.DamageSource>> static final List<QuadConsumer<net.minecraft.world.entity.LivingEntity, net.minecraft.world.entity.EquipmentSlot, net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack>> static final EnumMap<EventTiming, List<Consumer<net.minecraft.world.entity.LivingEntity>>> static final List<BiConsumer<net.minecraft.world.entity.Entity, net.minecraft.server.level.ServerLevel>> static final EnumMap<EventTiming, List<Consumer<net.minecraft.world.entity.Entity>>> static final List<BiConsumer<net.minecraft.world.entity.Entity, net.minecraft.server.level.ServerLevel>> -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpassOnDeath(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source) static voidpassOnEquipmentChange(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack oldStack, net.minecraft.world.item.ItemStack newStack) static voidpassOnLivingTick(EventTiming type, net.minecraft.world.entity.LivingEntity entity) static voidpassOnLoad(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level) static voidpassOnTick(EventTiming type, net.minecraft.world.entity.Entity entity) static voidpassOnUnload(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level)
-
Field Details
-
DEATH_LISTENERS
public static final List<BiConsumer<net.minecraft.world.entity.LivingEntity, net.minecraft.world.damagesource.DamageSource>> DEATH_LISTENERS -
EQUIPMENT_CHANGE_LISTENERS
public static final List<QuadConsumer<net.minecraft.world.entity.LivingEntity, net.minecraft.world.entity.EquipmentSlot, net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack>> EQUIPMENT_CHANGE_LISTENERS -
LOAD_LISTENERS
public static final List<BiConsumer<net.minecraft.world.entity.Entity, net.minecraft.server.level.ServerLevel>> LOAD_LISTENERS -
UNLOAD_LISTENERS
public static final List<BiConsumer<net.minecraft.world.entity.Entity, net.minecraft.server.level.ServerLevel>> UNLOAD_LISTENERS -
TICK_LISTENERS
public static final EnumMap<EventTiming, List<Consumer<net.minecraft.world.entity.Entity>>> TICK_LISTENERS -
LIVING_TICK_LISTENERS
public static final EnumMap<EventTiming, List<Consumer<net.minecraft.world.entity.LivingEntity>>> LIVING_TICK_LISTENERS
-
-
Method Details
-
passOnDeath
public static void passOnDeath(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.damagesource.DamageSource source) -
passOnEquipmentChange
public static void passOnEquipmentChange(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.world.item.ItemStack oldStack, net.minecraft.world.item.ItemStack newStack) -
passOnLoad
public static void passOnLoad(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level) -
passOnUnload
public static void passOnUnload(net.minecraft.world.entity.Entity entity, net.minecraft.server.level.ServerLevel level) -
passOnTick
-
passOnLivingTick
public static void passOnLivingTick(EventTiming type, net.minecraft.world.entity.LivingEntity entity)
-