Interface EntityTickEvents.StartTick<T extends net.minecraft.world.entity.Entity>

Enclosing class:
EntityTickEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EntityTickEvents.StartTick<T extends net.minecraft.world.entity.Entity>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    startTick(T entity, net.minecraft.world.level.Level level)
    Fires at the very start of an entity being ticked
  • Method Details

    • startTick

      boolean startTick(T entity, net.minecraft.world.level.Level level)
      Fires at the very start of an entity being ticked
      Parameters:
      entity - the entity being ticked
      level - the level the entity is in
      Returns:
      true to cancel the tick event for this entity. It's advised to not cancel a tick indiscriminately as it can break the game and other mods.