Module gomint.api

Class EntityVelocityEvent

    • Constructor Detail

      • EntityVelocityEvent

        public EntityVelocityEvent​(Entity entity,
                                   Vector velocity)
        Create a new entity based cancellable event
        Parameters:
        entity - for which this event is
        velocity - which should be applied to the given entity
    • Method Detail

      • getVelocity

        public Vector getVelocity()
        Get the velocity
        Returns:
        the applied velocity
      • setVelocity

        public void setVelocity​(Vector velocity)
        Set new velocity
        Parameters:
        velocity - which should be applied to the entity