Interface Validatable

All Known Subinterfaces:
Hitmark
All Known Implementing Classes:
Entity, GroundItem, HintArrow, HitmarkImpl, LocalPlayer, Npc, PathingEntity, Player, Projectile, SceneObject, SpotAnimation
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 interface Validatable
Indicates that the object can have both a valid and an invalid state and so may occasionally need to be validated.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets whether the object is valid There can be many reasons a Validatable may not be valid.
  • Method Details

    • validate

      boolean validate()
      Gets whether the object is valid There can be many reasons a Validatable may not be valid. These can range from the entity has despawned, a component has closed, a coordinate is no longer in the scene, an animation sequence has ended, and many other reasons..
      Returns:
      true if the object passes validation, otherwise false